SeqAn3 3.3.0
The Modern C++ library for sequence analysis.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
core/range/detail/misc.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2023, 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 <ranges>
16
18
19namespace seqan3::detail
20{
21
30template <std::ranges::input_range rng_t>
31constexpr void consume(rng_t && rng)
32{
33 auto it = begin(rng);
34 auto it_end = end(rng);
35 while (it != it_end)
36 ++it;
37}
38
39template <std::ranges::forward_range rng_t>
40constexpr void consume(rng_t &&)
41{}
42
43} // namespace seqan3::detail
T begin(T... args)
T end(T... args)
Provides platform and dependency checks.