SeqAn3
3.0.1
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/range/shortcuts.hpp
>
16
#include <
seqan3/std/ranges
>
17
18
namespace
seqan3::detail
19
{
20
26
template
<std::ranges::input_range rng_t>
27
constexpr
void
consume(rng_t && rng)
28
{
29
auto
it =
begin
(rng);
30
auto
it_end =
end
(rng);
31
while
(it != it_end)
32
++it;
33
}
34
39
template
<std::ranges::forward_range rng_t>
40
constexpr
void
consume(rng_t &&)
41
{}
42
43
}
// namespace seqan3::detail
shortcuts.hpp
Provides various shortcuts for common std::ranges functions.
ranges
Adaptations of concepts from the Ranges TS.
std::begin
T begin(T... args)
std::end
T end(T... args)
seqan3
range
detail
misc.hpp
Generated on Tue Feb 18 2020 09:33:19 for SeqAn3 by
1.8.16