BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::conditional< t_COND, t_TRUE_TYPE, t_FALSE_TYPE > Struct Template Reference

#include <bslmf_conditional.h>

Public Types

typedef t_TRUE_TYPE type
 

Detailed Description

template<bool t_COND, class t_TRUE_TYPE, class t_FALSE_TYPE>
struct bsl::conditional< t_COND, t_TRUE_TYPE, t_FALSE_TYPE >

This struct template implements the conditional meta-function defined in the C++ standard [meta.trans.other], providing an alias, type, that returns the result. If the (template parameter) value t_COND is true, then type has the same type as the (template parameter) type t_TRUE_TYPE; otherwise, type has the same type as the (template parameter) type t_FALSE_TYPE. Note that this generic default template defines type to be an alias to t_TRUE_TYPE for when t_COND is true. A template specialization is provided (below) handles the case for when t_COND is false.

Member Typedef Documentation

◆ type

template<bool t_COND, class t_TRUE_TYPE , class t_FALSE_TYPE >
typedef t_TRUE_TYPE bsl::conditional< t_COND, t_TRUE_TYPE, t_FALSE_TYPE >::type

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


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