Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2025. The current version is 1.91.0.
boost::stl_interfaces::closure
// In header: <boost/stl_interfaces/view_adaptor.hpp> template<typename F> struct closure : public boost::stl_interfaces::range_adaptor_closure< closure< F > > { // public member functions closure(F); template<typename T, typename Enable = unspecified> decltype(auto) operator()(T &&) const; template<typename T, typename Enable = unspecified> decltype(auto) operator()(T &&); };
An invocable consisting of a contained invocable f. Calling operator() with some argument t calls f(t) and returns the result. This type is typically used to capture a the result of a call to bind_back().