boost::stl_interfaces::adaptor
// In header: <boost/stl_interfaces/view_adaptor.hpp> template<typename F> struct adaptor { // construct/copy/destruct (); // public member functions template< Args> () ; };
Adapts an invocable f as a view adaptor. Calling operator(args...) will either: call f(args...) and return the result, if f(args...) is well-formed; or return closure(stl_interfaces::bind_back(f, args...)) otherwise.
f
operator(args...)
f(args...)
closure(stl_interfaces::bind_back(f, args...))
adaptor
( f);
template< Args> ( args) ;