Metafunction adding a top-level volatile qualifier to a type.
Declared in <bslmf_addvolatile.h>
template<class t_TYPE>
struct add_volatile;
This struct template implements the add_volatile meta-function defined in the C++11 standard [meta.trans.cv], providing an alias, type, that returns the result. If the (template parameter) t_TYPE is not a reference type, nor a function type, nor already volatile-qualified at the top-level, then type is an alias to t_TYPE with a top-level volatile-qualifier added; otherwise, type is an alias to t_TYPE.
| Name | Description |
|---|---|
type | Alias to t_TYPE with a top-level volatile-qualifier when applicable. |