Attaches a MessageSet extension payload using the default extension ID.
Synopsis
Declared in <absl/status/status_builder.h>
template<typename MessageSetExtension>
[[nodiscard]]
decltype(std::move(AttachPayload(obj)))
AttachPayload(MessageSetExtension const& obj) &&;
Description
As above, but &&‐qualified. Uses decltype() to propagate template constraints (SFINAE).
Return Value
*this to allow method chaining.
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
obj |
The extension message to attach. |
Created with MrDocs