Range-v3
Range algorithms, views, and actions for the Standard Library
ranges::views::split_fn Struct Reference

Synopsis of methods

constexpr view< split_fnsplit {}
 

Public Member Functions

template<typename Rng , typename Pattern >
constexpr auto operator() (Rng &&rng, Pattern &&pattern) const -> split_view< all_t< Rng >, all_t< Pattern >> requires viewable_range< Rng > &&input_range< Rng > &&viewable_range< Pattern > &&forward_range< Pattern > &&indirectly_comparable< iterator_t< Rng >, iterator_t< Pattern >, ranges::equal_to > &&(forward_range< Rng >||detail::tiny_range< Pattern >)
 
template<typename Rng >
constexpr auto operator() (Rng &&rng, range_value_t< Rng > val) const -> split_view< all_t< Rng >, single_view< range_value_t< Rng >>> requires viewable_range< Rng > &&input_range< Rng > &&indirectly_comparable< iterator_t< Rng >, range_value_t< Rng > const *, ranges::equal_to >