Return the id of the current selection if the selection is defined, and ‐1 otherwise.

Synopsis

Declared in <bdlar_choiceref.h>

int
selectionId() const;

Return Value

id of the current selection, or ‐1 if undefined

Created with MrDocs