BloombergLP::bdlat_ChoiceFunctions::bdlat_choiceHasSelection

Default customization-point implementation of hasSelection by name.

Synopsis

Declared in <bdlat_choicefunctions.h>

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

Return Value

true if object has the named selection, and false otherwise

Parameters

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