Quick Links:

bal | bbl | bdl | bsl

Public Types | Static Public Member Functions

bsls::UnspecifiedBool< BSLS_HOST_TYPE > Class Template Reference

#include <bsls_unspecifiedbool.h>

List of all members.

Public Types

typedef int UnspecifiedBool::* BoolType

Static Public Member Functions

static BoolType falseValue ()
static BoolType trueValue ()
static BoolType makeValue (bool predicate)

Detailed Description

template<class BSLS_HOST_TYPE>
class bsls::UnspecifiedBool< BSLS_HOST_TYPE >

This class provides a member, d_member, whose pointer-to-member may be used as an "unspecified boolean type" for implicit conversion operators.

See Component bsls_unspecifiedbool


Member Typedef Documentation

template<class BSLS_HOST_TYPE>
typedef int UnspecifiedBool::* bsls::UnspecifiedBool< BSLS_HOST_TYPE >::BoolType

Member Function Documentation

template<class BSLS_HOST_TYPE>
static BoolType bsls::UnspecifiedBool< BSLS_HOST_TYPE >::falseValue (  )  [static]

Return a value that converts to the bool value false.

template<class BSLS_HOST_TYPE>
static BoolType bsls::UnspecifiedBool< BSLS_HOST_TYPE >::trueValue (  )  [static]

Return a value that converts to the bool value true.

template<class BSLS_HOST_TYPE>
static BoolType bsls::UnspecifiedBool< BSLS_HOST_TYPE >::makeValue ( bool  predicate  )  [static]

Return a value that converts to the bool value true if the specified predicate is true, and the bool value false otherwise.


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