SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
take_exactly_view.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2021, 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 
16 
17 // ============================================================================
18 // detail::take_exactly (adaptor instance definition)
19 // ============================================================================
20 
21 namespace seqan3::detail
22 {
23 
25 template <bool or_throw>
26 using take_exactly_fn = take_fn<true, or_throw>;
27 
81 inline auto constexpr take_exactly = take_exactly_fn<false>{};
82 
83 // ============================================================================
84 // detail::take_exactly_or_throw (adaptor instance definition)
85 // ============================================================================
86 
95 inline auto constexpr take_exactly_or_throw = take_exactly_fn<true>{};
96 
98 } // namespace seqan3::detail
99 
100 #ifdef SEQAN3_DEPRECATED_310
101 namespace seqan3::views
102 {
103 
110 
117 
118 } // namespace seqan3::views
119 #endif // SEQAN3_DEPRECATED_310
constexpr auto take_exactly_or_throw
A view adaptor that returns the first size elements from the underlying range and also exposes size i...
Definition: take_exactly_view.hpp:116
constexpr auto take_exactly
A view adaptor that returns the first size elements from the underlying range (or less if the underly...
Definition: take_exactly_view.hpp:109
The SeqAn namespace for views.
Definition: char_to.hpp:22
#define SEQAN3_DEPRECATED_310
Deprecation message for SeqAn 3.1.0 release.
Definition: platform.hpp:203
[DEPRECATED] Provides seqan3::views::take.