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

PrevUpHomeNext

Struct template adaptor

boost::stl_interfaces::adaptor

Synopsis

// In header: <boost/stl_interfaces/view_adaptor.hpp>

template<typename F> 
struct adaptor {

  // public member functions
  adaptor(F);
  template<typename... Args> constexpr auto operator()(Args &&...) const;
};

Description

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.

adaptor public member functions

  1. adaptor(F f);
  2. template<typename... Args> constexpr auto operator()(Args &&... args) const;

PrevUpHomeNext