std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::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