boost::log::attributes::basic_named_scope::sentry — Sentry object class to automatically push and pop scopes.
// In header: <boost/log/attributes/named_scope.hpp> // Sentry object class to automatically push and pop scopes. struct sentry { // types typedef basic_named_scope< char_type > named_scope_type; // Attribute type. // construct/copy/destruct sentry(basic_string_literal< char_type > const &, basic_string_literal< char_type > const &, unsigned int); ~sentry(); };
sentry
public
construct/copy/destructsentry(basic_string_literal< char_type > const & sn, basic_string_literal< char_type > const & fn, unsigned int ln);
Constructor. Pushes the specified scope to the end of the thread-local list of scopes.
Parameters: |
|
~sentry();
Destructor. Removes the last pushed scope from the thread-local list of scopes.