Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
To implement custom memory allocation strategies, derive your class from {ref_memory_resource} and implement the functions要实现自定义内存分配策略,请从 {ref_memory_resource} 派生类,并实现函数 `do_allocate`,、`do_deallocate`, and和 `do_is_equal`as seen in this example below, which logs each operation it performs to the console:,如下例所示,该示例将其执行的每个操作记录到控制台: