Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
The constructor may optionally require that `h` and `v` are `const` references, with these consequences:
* If `W` requires that `h` and `v` are const references, then the corresponding serializer constructors for messages with this body type will will accept a const reference to a message, otherwise:
* If `W` requires that `h` and `v` are non-const references, then the corresponding serializer constructors for messages with this body type will require a non-const reference to a message.
Constructible from可从 `h`and和 `v`. The lifetime of构造。`h`and和 `v`are guaranteed to end no earlier than after the `W` is destroyed. The writer shall not access the contents of的生命周期保证不早于 `W` 销毁前结束。写入器在首次调用 `init` 之前不应访问 `h`or或 `v`before the first call to `init`, permitting lazy construction of the message.
的内容,以支持消息的延迟构造。The constructor may optionally require that
构造函数可选择要求 `h`
and和 `v`are `const` references, with these consequences:为 const 引用,其影响如下:*
If若 `W`requires that要求 `h`and和 `v`are为 constreferences, then the corresponding serializer constructors for messages with this body type will will accept a const reference to a message, otherwise:
引用,则对应消息体类型的序列化器构造函数将接受对消息的 const 引用。* If `W` requires that
* 否则,若 `W` 要求 `h`
and和 `v`are non-const references, then the corresponding serializer constructors for messages with this body type will require a non-const reference to a message.为非 const 引用,则对应消息体类型的序列化器构造函数将要求对消息的非 const 引用。