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

Name

Description

predicate

boolean condition that selects the returned value

Created with MrDocs