BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::add_cv< t_TYPE > Struct Template Reference

#include <bslmf_addcv.h>

Public Types

typedef add_const< typenameadd_volatile< t_TYPE >::type >::type type
 

Detailed Description

template<class t_TYPE>
struct bsl::add_cv< t_TYPE >

This struct template implements the add_cv 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 const-qualified and volatile-qualified at the top-level, then type is an alias to t_TYPE with a top-level const-qualifier and a volatile-qualifier added; otherwise, type is an alias to t_TYPE.

Member Typedef Documentation

◆ type

template<class t_TYPE >
typedef add_const<typenameadd_volatile<t_TYPE>::type>::type bsl::add_cv< t_TYPE >::type

This typedef is an alias to the (template parameter) t_TYPE with a top-level const-qualifier and volatile-qualifier added if t_TYPE is not a reference type, nor a function type, nor already const-qualified and volatile-qualified at the top-level; otherwise, type is an alias to t_TYPE.


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