SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
Loading...
Searching...
No Matches
seqan3::detail::take_exactly_fn< or_throw > Struct Template Reference

View adaptor definition for views::take and views::take_or_throw. More...

#include <seqan3/io/views/detail/take_exactly_view.hpp>

Public Member Functions

constexpr auto operator() (size_t const size) const
 Store the arguments and return a range adaptor closure object.
 
template<std::ranges::range urng_t>
constexpr auto operator() (urng_t &&urange, size_t target_size) const
 Type erase if possible and return view_take_exactly if not.
 

Detailed Description

template<bool or_throw>
struct seqan3::detail::take_exactly_fn< or_throw >

View adaptor definition for views::take and views::take_or_throw.

Template Parameters
or_throwWhether to throw an exception when the input is exhausted before the end is reached.

Member Function Documentation

◆ operator()()

template<bool or_throw>
template<std::ranges::range urng_t>
constexpr auto seqan3::detail::take_exactly_fn< or_throw >::operator() ( urng_t &&  urange,
size_t  target_size 
) const
inlineconstexpr

Type erase if possible and return view_take_exactly if not.

Returns
An instance of std::span, std::basic_string_view, std::ranges::subrange or seqan3::detail::view_take_exactly.

The documentation for this struct was generated from the following file:
Hide me