BloombergLP::balb::Choice2::accessSelection

Invoke the specified accessor on the non-modifiable selection, supplying accessor with the corresponding selection information structure.

Synopsis

Declared in <balb_testmessages.h>

template<class ACCESSOR>
int
accessSelection(ACCESSOR& accessor) const;

Description

Return the value returned from the invocation of accessor if this object has a defined selection, and -1 otherwise.

Return Value

value returned from the invocation of accessor if this object has a defined selection, and -1 otherwise

Parameters

NameDescription
accessorfunctor invoked on the current selection