BloombergLP::bsls::UnspecifiedBool::makeValue

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

Synopsis

Declared in <bsls_unspecifiedbool.h>

static
UnspecifiedBool<BSLS_HOST_TYPE>::BoolType
makeValue(bool predicate);

Return Value

value that converts to true if predicate is true; otherwise a value that converts to false

Parameters

NameDescription
predicateboolean condition that selects the returned value