Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
Now we add a requirement to the fields type: management of the corresponding string is delegated to the [*Fields] container, which can already be allocator aware and constructed with the necessary allocator parameter via the provided constructor overloads for `message`. The delegation implementation looks like this (only the response header specialization is shown):对 `Fields` 类型增加一项要求:将对应字符串的管理委托给 `Fields` 容器。该容器本身已具备分配器感知能力,且可通过 `message` 提供的构造函数重载,使用必要的分配器参数进行构造。委托的实现方式如下(仅展示响应头部的特化版本):``` ///An一个 HTTPresponse header响应头部 template<class Fields> struct header<false, Fields> : Fields {