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

Public Member Functions

template<typename F >
auto operator() (F &&f) const -> F requires(!std::is_bind_expression< uncvref_t< F >>::value)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename F >
auto operator() (F &&f) const -> protector< uncvref_t< F >> requires std::is_bind_expression< uncvref_t< F >>::value