SeqAn3  3.0.0
The Modern C++ library for sequence analysis.
take_exactly.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 
16 
17 // ============================================================================
18 // view::take_exactly (adaptor instance definition)
19 // ============================================================================
20 
21 namespace seqan3::view
22 {
23 
80 inline auto constexpr take_exactly = detail::take_fn<true, false>{};
81 
82 // ============================================================================
83 // view::take_exactly_or_throw (adaptor instance definition)
84 // ============================================================================
85 
94 inline auto constexpr take_exactly_or_throw = detail::take_fn<true, true>{};
95 
97 } // namespace seqan3::view
Provides seqan3::view::take.
auto constexpr take_exactly
A view adaptor that returns the first size elements from the underlying range (or less if the underly...
Definition: take_exactly.hpp:80
The SeqAn3 namespace for views.
auto constexpr 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:94