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
15
16namespace seqan3
17{
38template <tuple_like tuple_t>
39constexpr 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
A "pretty printer" for most SeqAn data structures and related types.
Definition debug_stream_type.hpp:79
constexpr auto tuple_pop_front(tuple_t &&t)
Removes the first element of a tuple.
Definition pop_front.hpp:39
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
Provides seqan3::tuple_split.
Hide me