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 the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct template adaptor

boost::stl_interfaces::adaptor

Synopsis

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

template<typename F> 
struct adaptor {
  // construct/copy/destruct
  adaptor(F);

  // public member functions
  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 construct/copy/destruct

  1. adaptor(F f);

adaptor public member functions

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

PrevUpHomeNext