BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bsls::UnspecifiedBool< BSLS_HOST_TYPE > Class Template Reference

#include <bsls_unspecifiedbool.h>

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 bsls_unspecifiedbool

Public Types

typedef int UnspecifiedBool::* BoolType
 

Static Public Member Functions

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

Member Typedef Documentation

◆ BoolType

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

Alias of a distinct type that is implicitly convertible to bool, but does not promote to int.

Member Function Documentation

◆ falseValue()

template<class BSLS_HOST_TYPE >
UnspecifiedBool< BSLS_HOST_TYPE >::BoolType bsls::UnspecifiedBool< BSLS_HOST_TYPE >::falseValue ( )
inlinestatic

Return a value that converts to the bool value false.

◆ makeValue()

template<class BSLS_HOST_TYPE >
UnspecifiedBool< BSLS_HOST_TYPE >::BoolType bsls::UnspecifiedBool< BSLS_HOST_TYPE >::makeValue ( bool  predicate)
inlinestatic

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

◆ trueValue()

template<class BSLS_HOST_TYPE >
UnspecifiedBool< BSLS_HOST_TYPE >::BoolType bsls::UnspecifiedBool< BSLS_HOST_TYPE >::trueValue ( )
inlinestatic

Return a value that converts to the bool value true.


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