Class xlifepp::RefToValue#

template<class T>
class RefToValue#

Collaboration diagram for xlifepp::RefToValue:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "1" [label="xlifepp::RefToValue< T >" tooltip="xlifepp::RefToValue< T >" fillcolor="#BFBFBF"] }

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