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);
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);
Return Value
-
trueifobjecthas the selection, andfalseotherwise -
trueifobjecthas the named selection, andfalseotherwise
Parameters
Name |
Description |
object |
choice object to query |
selectionId |
id of the selection to look up |
selectionName |
name of the selection to look up |
selectionNameLength |
length of |
Created with MrDocs