SeqAn3
3.0.2
The Modern C++ library for sequence analysis.
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
misc.hpp
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------------------------------
2
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
3
// Copyright (c) 2016-2020, 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 <
seqan3/std/ranges
>
16
17
#include <
seqan3/core/platform.hpp
>
18
19
namespace
seqan3::detail
20
{
21
27
template
<std::ranges::input_range rng_t>
28
constexpr
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
40
template
<std::ranges::forward_range rng_t>
41
constexpr
void
consume(rng_t &&)
42
{}
43
44
}
// namespace seqan3::detail
ranges
Adaptations of concepts from the Ranges TS.
platform.hpp
Provides platform and dependency checks.
std::begin
T begin(T... args)
std::end
T end(T... args)
seqan3
range
detail
misc.hpp
Generated on Thu Dec 3 2020 18:58:18 for SeqAn3 by
1.8.20