BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsltf::ConvertibleValueWrapper< TYPE > Struct Template Reference

#include <bsltf_convertiblevaluewrapper.h>

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.

See bsltf_convertiblevaluewrapper

Public Member Functions

 ConvertibleValueWrapper (const TYPE &value)
 
 operator TYPE & ()
 
 operator const TYPE & () const
 

Constructor & Destructor Documentation

◆ ConvertibleValueWrapper()

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

Create an object wrapping the specified value.

Member Function Documentation

◆ operator const TYPE &()

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

Return a reference to the (non-modifiable) wrapped value.

◆ operator TYPE &()

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

Return a reference to the (modifiable) wrapped value.


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