CatapultServer  v0.5.0.1 (Elephant)
catapult::utils::log::EraseOnExit< TAttributes > Class Template Reference

Removes an item from an attributes collection on destruction. More...

Public Member Functions

 EraseOnExit (TAttributes &attrs, IteratorType &iter)
 
 ~EraseOnExit ()
 

Private Types

using IteratorType = typename std::remove_reference_t< TAttributes >::iterator
 

Private Attributes

TAttributes & m_attrs
 
IteratorTypem_iter
 

Detailed Description

template<typename TAttributes>
class catapult::utils::log::EraseOnExit< TAttributes >

Removes an item from an attributes collection on destruction.

Member Typedef Documentation

◆ IteratorType

template<typename TAttributes >
using catapult::utils::log::EraseOnExit< TAttributes >::IteratorType = typename std::remove_reference_t<TAttributes>::iterator
private

Constructor & Destructor Documentation

◆ EraseOnExit()

template<typename TAttributes >
catapult::utils::log::EraseOnExit< TAttributes >::EraseOnExit ( TAttributes &  attrs,
IteratorType iter 
)
inline

◆ ~EraseOnExit()

template<typename TAttributes >
catapult::utils::log::EraseOnExit< TAttributes >::~EraseOnExit ( )
inline

Member Data Documentation

◆ m_attrs

template<typename TAttributes >
TAttributes& catapult::utils::log::EraseOnExit< TAttributes >::m_attrs
private

◆ m_iter

template<typename TAttributes >
IteratorType& catapult::utils::log::EraseOnExit< TAttributes >::m_iter
private

The documentation for this class was generated from the following file: