Return true if the specified ref has the selection identified by the specified selectionName of the specified selectionNameLength, and false otherwise.

Synopsis

Declared in <bdlar_choiceref.h>

bool
bdlat_choiceHasSelection(
    ChoiceConstRef const& ref,
    char const* selectionName,
    int selectionNameLength);

Return Value

true if the selection exists, and false otherwise

Parameters

Name

Description

ref

choice reference to query

selectionName

name of the selection to look up

selectionNameLength

length of selectionName

Created with MrDocs