Boost C++ Libraries 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.

Class template add_value_manip

boost::log::add_value_manip — Attribute value manipulator.


// In header: <boost/log/utility/manipulators/add_value.hpp>

template<typename RefT> 
class add_value_manip {
  // types
  typedef RefT                                                                 reference_type;  // Stored reference type. 
  typedef remove_cv< typename remove_reference< reference_type >::type >::type value_type;      // Attribute value type. 

  // construct/copy/destruct
  add_value_manip(attribute_name const &, reference_type);

  // public member functions
  attribute_name get_name() const;
  reference_type get_value() const;


add_value_manip public construct/copy/destruct

  1. add_value_manip(attribute_name const & name, reference_type value);
    Initializing constructor.

add_value_manip public member functions

  1. attribute_name get_name() const;
    Returns attribute name.
  2. reference_type get_value() const;
    Returns attribute value.