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

Public Member Functions

template<typename I , typename S , typename O , typename F , typename P = identity>
auto operator() (I begin, S end, O out, F pred, P proj=P{}) const -> copy_if_result< I, O > requires input_iterator< I > &&sentinel_for< S, I > &&weakly_incrementable< O > &&indirect_unary_predicate< F, projected< I, P >> &&indirectly_copyable< I, O >
 
template<typename Rng , typename O , typename F , typename P = identity>
auto operator() (Rng &&rng, O out, F pred, P proj=P{}) const -> copy_if_result< safe_iterator_t< Rng >, O > requires input_range< Rng > &&weakly_incrementable< O > &&indirect_unary_predicate< F, projected< iterator_t< Rng >, P >> &&indirectly_copyable< iterator_t< Rng >, O >