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

Synopsis of methods

constexpr action< split_fnsplit {}
 
constexpr action< split_when_fnsplit_when {}
 

Public Member Functions

template<typename Rng >
requires InputRange< Rng > &&IndirectlyComparable< iterator_t< Rng >, range_value_t< Rng > const *, ranges::equal_to > std::vector< split_value_t< Rng > > operator() (Rng &&rng, range_value_t< Rng > val) const
 
template<typename Rng , typename Pattern >
requires InputRange< Rng > &&ViewableRange< Pattern > &&ForwardRange< Pattern > &&IndirectlyComparable< iterator_t< Rng >, iterator_t< Pattern >, ranges::equal_to > &&ForwardRange< Rng > detail::tiny_range< Pattern > std::vector< split_value_t< Rng > > operator() (Rng &&rng, Pattern &&pattern) const