Namespaces
Variants

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>:: operator=

From cppreference.net
Memory management library
( exposition only* )
Allocators
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Memory resources
Uninitialized storage (until C++20)
( until C++20* )
( until C++20* )
( until C++20* )

Garbage collector support (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
(C++11) (until C++23)
定义于头文件 <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 ,即外部分配器)及所有内部分配器。

参数

其他 - 另一个 std::scoped_allocator_adaptor