Condividi tramite


message::message Constructor

Constructs a message object.

message(
   _Type const &_P
);

message(
   _Type const &_P,
   runtime_object_identity _Id
);

message(
   message const & _Msg
);

message(
   _In_ message const * _Msg
);

Parameters

  • _P
    The payload of this message.

  • _Id
    The unique ID of this message.

  • _Msg
    A reference or pointer to a message object.

Remarks

The constructor that takes a pointer to a message object as an argument throws an invalid_argument exception if the parameter _Msg is NULL.

Requirements

Header: agents.h

Namespace: concurrency

See Also

Reference

message Class