userver: utils::SwappingSmart< T > Class Template Reference
Loading...
Searching...
No Matches
utils::SwappingSmart< T > Class Template Reference

Detailed Description

template<typename T>
class utils::SwappingSmart< T >

Definition at line 19 of file swappingsmart.hpp.

Public Member Functions

 SwappingSmart (const std::shared_ptr< T > &ptr)
 
std::shared_ptr< T > Get () const
 
void Set (const std::shared_ptr< T > &ptr)
 
void Set (T &&obj)
 
void Clear ()
 

Constructor & Destructor Documentation

◆ SwappingSmart()

template<typename T >
utils::SwappingSmart< T >::SwappingSmart ( const std::shared_ptr< T > & ptr)
inlineexplicit

Definition at line 23 of file swappingsmart.hpp.

Member Function Documentation

◆ Clear()

template<typename T >
void utils::SwappingSmart< T >::Clear ( )
inline

Definition at line 47 of file swappingsmart.hpp.

◆ Get()

template<typename T >
std::shared_ptr< T > utils::SwappingSmart< T >::Get ( ) const
inline

Definition at line 25 of file swappingsmart.hpp.

◆ Set() [1/2]

template<typename T >
void utils::SwappingSmart< T >::Set ( const std::shared_ptr< T > & ptr)
inline

Definition at line 29 of file swappingsmart.hpp.

◆ Set() [2/2]

template<typename T >
void utils::SwappingSmart< T >::Set ( T && obj)
inline

Definition at line 46 of file swappingsmart.hpp.


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