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

View adaptor definition for detail::take_until and detail::take_until_or_throw. More...

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

Public Member Functions

template<typename fun_t >
constexpr auto operator() (fun_t &&fun) const
 Store the arguments and return a range adaptor closure object.
 
template<std::ranges::viewable_range urng_t, typename fun_t >
constexpr auto operator() (urng_t &&urange, fun_t &&fun) const
 Call the view's constructor with the given parameters.
 

Detailed Description

template<bool or_throw, bool and_consume>
struct seqan3::detail::take_until_fn< or_throw, and_consume >

View adaptor definition for detail::take_until and detail::take_until_or_throw.

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

Member Function Documentation

◆ operator()()

template<bool or_throw, bool and_consume>
template<std::ranges::viewable_range urng_t, typename fun_t >
constexpr auto seqan3::detail::take_until_fn< or_throw, and_consume >::operator() ( urng_t &&  urange,
fun_t &&  fun 
) const
inlineconstexpr

Call the view's constructor with the given parameters.

Template Parameters
urng_tThe underlying range type; must model std::ranges::view.
fun_tThe type of the callable; concept checks done in class.
Parameters
[in]urangeThe underlying range.
[in]funThe callable that will be evaluated on every element.
Returns
An instance of seqan3::detail::view_take_until.

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