Invoke the specified accessor on the current selection of the specified ref. Return the value from the invocation of accessor.
Declared in <bdlar_choiceref.h>
template<class t_ACCESSOR>
int
bdlat_choiceAccessSelection(
ChoiceConstRef const& ref,
t_ACCESSOR& accessor);
value from the invocation of accessor
| Name | Description |
|---|---|
| ref | choice reference to access |
| accessor | callable invoked on the current selection |