SeqAn3
3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
pop_front.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
2
// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
3
// SPDX-License-Identifier: BSD-3-Clause
4
10
#pragma once
11
12
#include <
utility
>
13
14
#include <
seqan3/utility/tuple/split.hpp
>
15
16
namespace
seqan3
17
{
38
template
<tuple_like tuple_t>
39
constexpr
auto
tuple_pop_front
(tuple_t && t)
40
{
41
static_assert
(std::tuple_size_v<std::remove_cvref_t<tuple_t>> > 0);
42
43
return
std::get<1>(tuple_split<1>(std::forward<tuple_t>(t)));
44
}
45
46
}
// namespace seqan3
seqan3::tuple_pop_front
constexpr auto tuple_pop_front(tuple_t &&t)
Removes the first element of a tuple.
Definition
pop_front.hpp:39
seqan3
The main SeqAn3 namespace.
Definition
aligned_sequence_concept.hpp:26
split.hpp
Provides seqan3::tuple_split.
utility
Hide me
Version:
seqan3
utility
tuple
pop_front.hpp
Generated on Thu Oct 10 2024 17:58:24 for SeqAn3 by
1.9.8