BloombergLP::bdlat_ChoiceFunctions::hasSelection

hasSelection overloads

Synopses

Declared in <bdlat_choicefunctions.h>

Return true if the specified object has a selection with the specified selectionId, and false otherwise.

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

Return true if the specified object has a selection with the specified selectionName of the specified selectionNameLength, and false otherwise.

template<class TYPE>
bool
hasSelection(
    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