Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
This can be worked around by declaring the container to use a custom allocator (perhaps using a可通过声明容器使用自定义分配器(可能使用`std::shared_ptr<< std::pmr::memory_resource>` as a data member). This hinders library composition; every library now exports unique, incompatible container types. A raw memory resource pointer is also easy to misuse:>`作为数据成员)来解决此问题。这会阻碍库的组合;每个库都会导出各自独特且互不兼容的容器类型。原始内存资源指针也容易被误用: