Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
solves this problem by introducing a new smart pointer called <<ref_storage_ptr>> which builds upon {cpp}17's memory allocation interfaces, accomplishing the goals above. As a result, libraries which use this type compose more easily and enjoy faster compilation, as member functions for containers which use the type can be defined out-of-line.通过引入一个名为<<ref_storage_ptr>> 的新型智能指针解决此问题,该指针基于{cpp}17的内存分配接口构建,实现了上述目标。因此,使用该类型的库更易于组合,并能获得更快的编译速度,因为使用该类型的容器的成员函数可以定义在类外(out-of-line)。</ref_storage_ptr>