|
|
| view_take_until ()=default |
| Defaulted.
|
|
constexpr | view_take_until (view_take_until const &rhs)=default |
| Defaulted.
|
|
constexpr | view_take_until (view_take_until &&rhs)=default |
| Defaulted.
|
|
constexpr view_take_until & | operator= (view_take_until const &rhs)=default |
| Defaulted.
|
|
constexpr view_take_until & | operator= (view_take_until &&rhs)=default |
| Defaulted.
|
|
| ~view_take_until ()=default |
| Defaulted.
|
|
| view_take_until (urng_t &&_urange, fun_t &&_fun) |
| Construct from another range.
|
|
template<std::ranges::viewable_range rng_t>
requires std::constructible_from<urng_t, std::views::all_t<rng_t>> |
| view_take_until (rng_t &&_urange, fun_t &&_fun) |
| Construct from another viewable_range.
|
|
|
auto | begin () noexcept |
| Returns an iterator to the first element of the container.
|
|
auto | begin () const noexcept |
| Returns an iterator to the first element of the container.
|
|
auto | end () noexcept |
| Returns an iterator to the element following the last element of the range.
|
|
auto | end () const noexcept |
| Returns an iterator to the element following the last element of the range.
|
|
template<std::ranges::view urng_t, typename fun_t, bool or_throw, bool and_consume>
class seqan3::detail::view_take_until< urng_t, fun_t, or_throw, and_consume >
The type returned by seqan3::detail::take_until and seqan3::detail::take_until_or_throw.
- Template Parameters
-
urng_t | The type of the underlying range, must model std::ranges::view. |
fun_t | Type of the callable that will be evaluated on every member; must model std::invocable with std::ranges::range_reference_t<urng_t> as argument and return bool . |
or_throw | Whether to throw an exception when the input is exhausted before the end of line is reached. |
Note that most members of this class are generated by std::ranges::view_interface which is not yet documented here.
template<std::ranges::view urng_t, typename fun_t , bool or_throw, bool and_consume>
template<std::ranges::viewable_range rng_t>
requires std::constructible_from<urng_t, std::views::all_t<rng_t>>
Construct from another viewable_range.
- Template Parameters
-
rng_t | Type of the passed range; urng_t must be constructible from this. |
- Parameters
-
[in] | _urange | The underlying range. |
[in] | _fun | The functor that acts as termination criterium. |
template<std::ranges::view urng_t, typename fun_t , bool or_throw, bool and_consume>
Returns an iterator to the first element of the container.
- Returns
- Iterator to the first element.
If the container is empty, the returned iterator will be equal to seqan3::detail::take_until::end().
Complexity
Constant.
Exceptions
No-throw guarantee.
template<std::ranges::view urng_t, typename fun_t , bool or_throw, bool and_consume>
Returns an iterator to the first element of the container.
- Returns
- Iterator to the first element.
If the container is empty, the returned iterator will be equal to seqan3::detail::take_until::end().
Complexity
Constant.
Exceptions
No-throw guarantee.
template<std::ranges::view urng_t, typename fun_t , bool or_throw, bool and_consume>
Returns an iterator to the element following the last element of the range.
- Returns
- Iterator to the end.
This element acts as a placeholder; attempting to dereference it results in undefined behaviour.
Complexity
Constant.
Exceptions
No-throw guarantee.
template<std::ranges::view urng_t, typename fun_t , bool or_throw, bool and_consume>
Returns an iterator to the element following the last element of the range.
- Returns
- Iterator to the end.
This element acts as a placeholder; attempting to dereference it results in undefined behaviour.
Complexity
Constant.
Exceptions
No-throw guarantee.