std::scoped_allocator_adaptor::operator=

定义于头文件 <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

版本历史

  • (当前 | 先前) 2017年6月4日 (日) 20:15Fruderica讨论 | 贡献. . (765字节) (+765). . (以“{{cpp/memory/scoped_allocator_adaptor/title|operator{{=}}}} {{cpp/memory/scoped_allocator_adaptor/navbar}} {{dcl begin}} {{dcl header|scoped_allocator}} {{dcl|num=1 ...”为内容创建页面)