| Home | Libraries | People | FAQ | More

## 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> 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> auto operator()(Args &&... args) const;