BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslmf::AddConst_Imp< t_TYPE, t_ADD_CONST_FLAG > Struct Template Reference

#include <bslmf_addconst.h>

Public Types

typedef t_TYPE const Type
 

Detailed Description

template<class t_TYPE, bool t_ADD_CONST_FLAG>
struct bslmf::AddConst_Imp< t_TYPE, t_ADD_CONST_FLAG >

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

Member Typedef Documentation

◆ Type

template<class t_TYPE , bool t_ADD_CONST_FLAG>
typedef t_TYPE const bslmf::AddConst_Imp< t_TYPE, t_ADD_CONST_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 const-qualifier has been added.


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