SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
core/range/detail/misc.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 <ranges>
13
15
16namespace seqan3::detail
17{
18
27template <std::ranges::input_range rng_t>
28constexpr void consume(rng_t && rng)
29{
30 auto it = begin(rng);
31 auto it_end = end(rng);
32 while (it != it_end)
33 ++it;
34}
35
36template <std::ranges::forward_range rng_t>
37constexpr void consume(rng_t &&)
38{}
39
40} // namespace seqan3::detail
T begin(T... args)
T end(T... args)
Provides platform and dependency checks.
Hide me