Quick Links:

bal | bbl | bdl | bsl

Public Types

bslmf::EnableIf< t_COND, t_TYPE > Struct Template Reference

#include <bslmf_enableif.h>

List of all members.

Public Types

typedef t_TYPE type

Detailed Description

template<bool t_COND, class t_TYPE = void>
struct bslmf::EnableIf< t_COND, t_TYPE >

This struct template implements a meta-function that 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 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.

Also note that although this struct is functionally identical to bsl::enable_if, the use of bsl::enable_if should be preferred.

See Component bslmf_enableif


Member Typedef Documentation

template<bool t_COND, class t_TYPE = void>
typedef t_TYPE bslmf::EnableIf< t_COND, t_TYPE >::type

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