BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsltf::ConvertibleValueWrapper< TYPE > Struct Template Reference

#include <bsltf_convertiblevaluewrapper.h>

Public Member Functions

 ConvertibleValueWrapper (const TYPE &value)
 Create an object wrapping the specified value.
 
 operator TYPE & ()
 Return a reference to the (modifiable) wrapped value.
 
 operator const TYPE & () const
 Return a reference to the (non-modifiable) wrapped value.
 

Detailed Description

template<class TYPE>
struct bsltf::ConvertibleValueWrapper< TYPE >

This class provides a wrapper around an object of the specified (template parameter) TYPE. TYPE shall be CopyConstructible. If TYPE is a value-semantic type, then this class will also be value semantic. Objects of this type are implicitly convertible to and from objects of the specified TYPE.

Constructor & Destructor Documentation

◆ ConvertibleValueWrapper()

template<class TYPE >
bsltf::ConvertibleValueWrapper< TYPE >::ConvertibleValueWrapper ( const TYPE &  value)
inline

Member Function Documentation

◆ operator const TYPE &()

template<class TYPE >
bsltf::ConvertibleValueWrapper< TYPE >::operator const TYPE & ( ) const
inline

◆ operator TYPE &()

template<class TYPE >
bsltf::ConvertibleValueWrapper< TYPE >::operator TYPE & ( )
inline

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