Share via


message::message Constructor

Constructs a message object.

message(
   _Type const &_P
);
message(
   message const & _Msg
);
message(
   message const * _Msg
);

Parameters

  • _P
    The payload of this message.

  • _Msg
    A reference or pointer to a message object.

Remarks

This method throws an invalid_argument exception if the parameter _Msg is NULL.

Requirements

Header: agents.h

Namespace: Concurrency

See Also

Reference

message Class