SeqAn3  3.0.2
The Modern C++ library for sequence analysis.
take_exactly.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 
16 
17 // ============================================================================
18 // views::take_exactly (adaptor instance definition)
19 // ============================================================================
20 
21 namespace seqan3::views
22 {
23 
77 inline auto constexpr take_exactly = detail::take_fn<true, false>{};
78 
79 // ============================================================================
80 // views::take_exactly_or_throw (adaptor instance definition)
81 // ============================================================================
82 
91 inline auto constexpr take_exactly_or_throw = detail::take_fn<true, true>{};
92 
94 } // namespace seqan3::views
seqan3::views::take_exactly_or_throw
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.hpp:91
seqan3::views
The SeqAn namespace for views.
Definition: view_iota_simd.hpp:218
seqan3::views::take_exactly
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.hpp:77
take.hpp
Provides seqan3::views::take.