std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::operator=
来自cppreference.com
< cpp | memory | scoped allocator adaptor
内存管理库
|
std::scoped_allocator_adaptor
成员函数 | ||||
scoped_allocator_adaptor::operator= | ||||
非成员函数 | ||||
(C++20 前) | ||||
推导指引(C++17) |
在标头 <scoped_allocator> 定义 | ||
scoped_allocator_adaptor& operator=(const scoped_allocator_adaptor& other )=default; | (1) | |
scoped_allocator_adaptor& operator=( scoped_allocator_adaptor&& other )=default; | (2) | |
1) 显式预置的复制赋值运算符,它复制赋值基类(外层分配器
OuterAlloc
)和所有内层分配器。2) 显式预置的移动赋值运算符,它移动赋值基类(外层分配器
OuterAlloc
)和所有内层分配器。[编辑]参数
other | - | 另一 std::scoped_allocator_adaptor |