Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
When using a memory resource in this fashion, including the case where a storage pointer or container is constructed from a {ref_polymorphic_allocator}, the caller must ensure that the lifetime of the resource is extended until it is no longer referenced by any variables; otherwise, undefined behavior is possible.以这种方式使用内存资源时(包括从 {ref_polymorphic_allocator} 构造存储指针或容器的情况),调用方必须确保资源的生命周期延长至不再被任何变量引用为止;否则,可能会出现未定义行为。