Export (0) Print
Expand All

choice::value Method

Gets the message whose index was selected by the choice messaging block.

template <
   typename _Payload_type
>
_Payload_type const & value();

_Payload_type

The type of the message payload.

The payload of the message.

Because a choice messaging block can take inputs with different payload types, you must specify the type of the payload at the point of retrieval. You can determine the type based on the result of the index method.

Header: agents.h

Namespace: concurrency

Show:
© 2015 Microsoft