![]() |
boost::log::attributes::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 { // construct/copy/destruct sentry(string_literal const &, string_literal const &, unsigned int); sentry(sentry const &) = delete; sentry& operator=(sentry const &) = delete; ~sentry(); };
sentry
public
construct/copy/destructsentry(string_literal const & sn, string_literal const & fn, unsigned int ln);
Constructor. Pushes the specified scope to the end of the thread-local list of scopes.
Parameters: |
|
sentry(sentry const &) = delete;
sentry& operator=(sentry const &) = delete;
~sentry();
Destructor. Removes the last pushed scope from the thread-local list of scopes.