BioC++ core-0.7.0
The Modern C++ libraries for Bioinformatics.
 
Loading...
Searching...
No Matches
take_exactly.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2022 deCODE Genetics
3// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
4// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
5// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
6// shipped with this file and also available at: https://github.com/biocpp/biocpp-core/blob/main/LICENSE.md
7// -----------------------------------------------------------------------------------------------------
8
14#pragma once
15
17
18// ============================================================================
19// views::take_exactly (adaptor instance definition)
20// ============================================================================
21
22namespace bio::ranges::views
23{
24
78inline constexpr auto take_exactly = detail::take_fn<true, false>{};
79
80// ============================================================================
81// views::take_exactly_or_throw (adaptor instance definition)
82// ============================================================================
83
92inline constexpr auto take_exactly_or_throw = detail::take_fn<true, true>{};
93
95} // namespace bio::ranges::views
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:92
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:78
The BioC++ namespace for views.
Provides bio::views::take.