SeqAn3
3.0.3
The Modern C++ library for sequence analysis.
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
pop_front.hpp
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------------------------------
2
// Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
3
// Copyright (c) 2016-2021, Knut Reinert & MPI für molekulare Genetik
4
// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5
// shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6
// -----------------------------------------------------------------------------------------------------
7
13
#pragma once
14
15
#include <
utility
>
16
17
#include <
seqan3/utility/tuple/split.hpp
>
18
19
namespace
seqan3
20
{
41
template
<tuple_like tuple_t>
42
constexpr
auto
tuple_pop_front
(tuple_t && t)
43
{
44
static_assert(
std::tuple_size_v
<
std::remove_cvref_t<tuple_t>
> > 0);
45
46
return
std::get<1>(tuple_split<1>(std::forward<tuple_t>(t)));
47
}
48
49
}
// 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:42
seqan3
The main SeqAn3 namespace.
Definition:
aligned_sequence_concept.hpp:29
std::remove_cvref_t
split.hpp
Provides seqan3::tuple_split.
std::tuple_size_v
T tuple_size_v
utility
seqan3
utility
tuple
pop_front.hpp
Generated on Fri May 28 2021 10:58:53 for SeqAn3 by
1.9.1