Invoke accessor on the active selection of object.
Declared in <bdlat_choicefunctions.h>
template<
class TYPE,
class ACCESSOR>
int
accessSelection(
TYPE const& object,
ACCESSOR& accessor);
Invoke the specified accessor on the (non-modifiable) selection of the specified object, supplying accessor with the corresponding selection information structure. The supplied accessor must be a callable type that can be called as if it had the following signature: ` template <class t_INFO> int accessor(const SELECTION_TYPE& selection, const t_INFO& info); ` Return the value returned from the invocation of accessor. The behavior is undefined unless k_UNDEFINED_SELECTION_ID != selectionId(object).
result of invoking accessor
| Name | Description |
|---|---|
| object | choice object whose selection is accessed |
| accessor | functor applied to the active selection |