boost::text::closure
// In header: <boost/text/view_adaptor.hpp> template<typename F> struct closure : public boost::text::range_adaptor_closure< closure< F > > { // construct/copy/destruct closure(F); // public member functions template<typename T> constexpr decltype(auto) operator()(T &&) const; };