BloombergLP::bdlar::bdlat_choiceHasSelection

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

Synopsis

Declared in <bdlar_choiceref.h>

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

Return Value

true if the selection exists, and false otherwise

Parameters

NameDescription
refchoice reference to query
selectionIdid of the selection to look up