SeqAn3  3.0.0
The Modern C++ library for sequence analysis.
concept.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2019, 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
20 {
21 
40 template <typename type>
42 SEQAN3_CONCEPT ConstIterableRange =
49 
55 template <typename type>
57 SEQAN3_CONCEPT ForwardingRange = std::ranges::Range<type> && requires (type && val)
58 {
59  std::ranges::begin(std::forward<type>(val));
60  std::ranges::end(std::forward<type>(val));
61 };
63 
64 } // namespace seqan3
Defines the requirements of a type that allows iteration over its elements by providing a begin itera...
Provides platform and dependency checks.
Specifies requirements of a Range type for which begin returns a type that models std::RandomAccessIt...
The main SeqAn3 namespace.
Specifies requirements of a Range type for which begin returns a type that models std::BidirectionalI...
Adaptations of concepts from the Ranges TS.
::ranges::begin begin
Alias for ranges::begin. Returns an iterator to the beginning of a range.
Definition: ranges:174
Specifies requirements of a Range type for which begin returns a type that models std::InputIterator...
Specifies requirements of a Range type for which begin returns a type that models std::ForwardIterato...
::ranges::end end
Alias for ranges::end. Returns an iterator to the end of a range.
Definition: ranges:179