BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsl::enable_if< t_COND, t_TYPE > Struct Template Reference

#include <bslmf_enableif.h>

Detailed Description

template<bool t_COND, class t_TYPE = void>
struct bsl::enable_if< t_COND, t_TYPE >

This struct template implements the enable_if meta-function defined in the C++11 standard [meta.trans.ptr]. This struct template provides a typedef type that is an alias to the (template parameter) t_TYPE if the (template parameter) t_COND is true; otherwise, type is not provided. If t_TYPE is not specified, it is set to void.

Note
Note that this generic default template provides type for when t_COND is true; a template specialization is provided (below) that omits type for when t_COND is false.

See bslmf_enableif

Public Types

typedef t_TYPE type
 

Member Typedef Documentation

◆ type

template<bool t_COND, class t_TYPE = void>
typedef t_TYPE bsl::enable_if< t_COND, t_TYPE >::type

This typedef is an alias to the (template parameter) t_TYPE.


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