BloombergLP::bdlar::bdlat_choiceHasSelection

bdlat_choiceHasSelection overloads

Synopses

Declared in <bdlar_choiceref.h>

Return true if the specified ref has the selection identified by the specified selectionId, and false otherwise.

bool
bdlat_choiceHasSelection(
    ChoiceConstRef const& ref,
    int selectionId);
» more...

Return whether the specified ref has the selection with the specified selectionId.

bool
bdlat_choiceHasSelection(
    ChoiceRef const& ref,
    int selectionId);
» more...

Return true if the specified ref has the selection identified by the specified selectionName of the specified selectionNameLength, and false otherwise.

bool
bdlat_choiceHasSelection(
    ChoiceConstRef const& ref,
    char const* selectionName,
    int selectionNameLength);
» more...

Return whether the specified ref has the selection with the specified selectionName and selectionNameLength.

bool
bdlat_choiceHasSelection(
    ChoiceRef const& ref,
    char const* selectionName,
    int selectionNameLength);
» more...

Return Value

true if the selection exists, and false otherwise

Parameters

NameDescription
refchoice reference to query
selectionIdid of the selection to look up
selectionNamename of the selection to look up
selectionNameLengthlength of selectionName