Boost C++ Libraries

PrevUpHomeNext

Function template add_scoped_thread_attribute

boost::log::add_scoped_thread_attribute

Synopsis

// In header: <boost/log/utility/scoped_attribute.hpp>


template<typename CharT> 
  unspecified add_scoped_thread_attribute(std::basic_string< CharT > const & name, 
                                          shared_ptr< attribute > const & attr);

Description

Registers a thread-specific attribute

Parameters:
attr

Pointer to the attribute. Must not be NULL.

name

Attribute name

Returns:

An unspecified guard object that may be used to initialize scoped_attribute variable.


PrevUpHomeNext