Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bsltf::ConvertibleValueWrapper< TYPE > Struct Template Reference

#include <bsltf_convertiblevaluewrapper.h>

List of all members.

Public Member Functions

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

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 Component bsltf_convertiblevaluewrapper


Constructor & Destructor Documentation

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

IMPLICIT: Create an object wrapping the specified value.


Member Function Documentation

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

Return a reference to the (modifiable) wrapped value.

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

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


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