System::HolderInitializer< T, false > Struct Template Reference

Public Member Functions

 HolderInitializer (T &holder)
 
const T & HoldIfTemporary (const T &value)
 
const T & Hold (const T &value)
 

Detailed Description

template<typename T>
struct System::HolderInitializer< T, false >

HolderInitializer specialization for the case when T is a value type., The usage context allow to return reference to temporary objects, as it is guaranteed, that the instance will be copied by caller. So, this specialization is used just as a stub, and do nothing.

Constructor & Destructor Documentation

◆ HolderInitializer()

template<typename T >
System::HolderInitializer< T, false >::HolderInitializer ( T &  holder)
inline

Member Function Documentation

◆ Hold()

template<typename T >
const T& System::HolderInitializer< T, false >::Hold ( const T &  value)
inline

◆ HoldIfTemporary()

template<typename T >
const T& System::HolderInitializer< T, false >::HoldIfTemporary ( const T &  value)
inline