BloombergLP::bdlat_ChoiceFunctions::bdlat_choiceHasSelection

bdlat_choiceHasSelection overloads

Synopses

Declared in <bdlat_choicefunctions.h>

Default customization-point implementation of hasSelection by id.

template<class TYPE>
bool
bdlat_choiceHasSelection(
    TYPE const& object,
    int selectionId);
» more...

Default customization-point implementation of hasSelection by name.

template<class TYPE>
bool
bdlat_choiceHasSelection(
    TYPE const& object,
    char const* selectionName,
    int selectionNameLength);
» more...

Return Value

  • true if object has the selection, and false otherwise
  • true if object has the named selection, and false otherwise

Parameters

NameDescription
objectchoice object to query
selectionIdid of the selection to look up
selectionNamename of the selection to look up
selectionNameLengthlength of selectionName