Class xlifepp::RefToValue#

template<class T>
class RefToValue#

Transports a reference as a value Serves to implement the Colvin/Gibbons trick for SmartPtr/ScopeGuard.

Public Functions

inline RefToValue(const RefToValue &rhs)#

copy constructor

inline RefToValue(T &ref)#

constructor

inline operator T&() const#

access operator