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 for the latest Boost documentation.
PrevUpHomeNext

Struct template as_action_adapter

boost::log::as_action_adapter — Function object adapter for Boost.Spirit actions.

Synopsis

// In header: <boost/log/utility/functional/as_action.hpp>

template<typename FunT> 
struct as_action_adapter {
  // types
  typedef FunT::result_type result_type;

  // construct/copy/destruct
  explicit as_action_adapter(FunT const &);

  // public member functions
  template<typename AttributeT, typename ContextT> 
    result_type operator()(AttributeT const &, ContextT const &, bool &) const;
};

Description

as_action_adapter public construct/copy/destruct

  1. explicit as_action_adapter(FunT const & fun);

as_action_adapter public member functions

  1. template<typename AttributeT, typename ContextT> 
      result_type operator()(AttributeT const & attr, ContextT const & ctx, 
                             bool & pass) const;

PrevUpHomeNext