BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslmf::AddVolatile_Imp< t_TYPE, t_ADD_VOLATILE_FLAG > Struct Template Reference

#include <bslmf_addvolatile.h>

Detailed Description

template<class t_TYPE, bool t_ADD_VOLATILE_FLAG>
struct bslmf::AddVolatile_Imp< t_TYPE, t_ADD_VOLATILE_FLAG >

This struct template provides an alias, Type, that adds a volatile-qualifier to the (template parameter) t_TYPE if the (template parameter) t_ADD_VOLATILE_FLAG is true. This generic default template adds the volatile-qualifier to t_TYPE. A template specialization (below) leaves t_TYPE as-is in its Type alias.

See bslmf_addvolatile

Public Types

typedef t_TYPE volatile Type
 

Member Typedef Documentation

◆ Type

template<class t_TYPE , bool t_ADD_VOLATILE_FLAG>
typedef t_TYPE volatile bslmf::AddVolatile_Imp< t_TYPE, t_ADD_VOLATILE_FLAG >::Type

This typedef is an alias to a type that is the same as the (template parameter) t_TYPE except that a top-level volatile-qualifier has been added.


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