Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
A <<<ref_static_resource>> constructs from a caller-provided buffer, and satisfies all memory allocation requests from the buffer. Once the buffer is exhausted, subsequent calls to allocate throw the exception `std::bad_alloc`. The resource offers a simple invariant: dynamic heap allocations are never performed.> 由调用方提供的缓冲区构造而成,并从该缓冲区满足所有内存分配请求。一旦缓冲区耗尽,后续的分配调用将抛出 `std::bad_alloc` 异常。该资源提供一个简单的不变式:永不执行动态堆分配。</ref_static_resource>