MongoDB  2.7.0
Public Member Functions | List of all members
mongo::RefToValue< T > Class Template Reference

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

#include <scopeguard.h>

Public Member Functions

 RefToValue (T &ref)
 
 RefToValue (const RefToValue &rhs)
 
 operator T & () const
 

Detailed Description

template<class T>
class mongo::RefToValue< T >

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


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