std::scoped_allocator_adaptor::scoped_allocator_adaptor

来自cppreference.com

 
 
動態內存管理
低級別的內存管理
分配器
Original:
Allocators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
allocator
allocator_traits(C++11)
allocator_arg_t(C++11)
allocator_arg(C++11)
uses_allocator(C++11)
scoped_allocator_adaptor(C++11)
未初始化的存儲空間
Original:
Uninitialized storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
uninitialized_copy
uninitialized_copy_n(C++11)
uninitialized_fill
uninitialized_fill_n
raw_storage_iterator
get_temporary_buffer
return_temporary_buffer
智能指針
Original:
Smart pointers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unique_ptr(C++11)
shared_ptr(C++11)
weak_ptr(C++11)
auto_ptr(過時了)
owner_less(C++11)
enable_shared_from_this(C++11)
bad_weak_ptr(C++11)
default_delete(C++11)
垃圾收集的支持
Original:
Garbage collection support
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
declare_reachable(C++11)
undeclare_reachable(C++11)
declare_no_pointers(C++11)
undeclare_no_pointers(C++11)
pointer_safety(C++11)
get_pointer_safety(C++11)
雜項
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pointer_traits(C++11)
addressof(C++11)
align(C++11)
C庫
Original:
C Library
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
std::scoped_allocator_adaptor
成員函數
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
scoped_allocator_adaptor::scoped_allocator_adaptor
scoped_allocator_adaptor::~scoped_allocator_adaptor
scoped_allocator_adaptor::inner_allocator
scoped_allocator_adaptor::outer_allocator
scoped_allocator_adaptor::allocate
scoped_allocator_adaptor::deallocate
scoped_allocator_adaptor::max_size
scoped_allocator_adaptor::construct
scoped_allocator_adaptor::destroy
scoped_allocator_adaptor::select_on_container_copy_construction
非成員函數
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator==
operator!=
 
Defined in header <scoped_allocator>
scoped_allocator_adaptor()
(1) (C++11 起)
template< class OuterA2 >
scoped_allocator_adaptor( OuterA2&& outerAlloc, const InnerAllocs&... innerAllocs)
(2) (C++11 起)
scoped_allocator_adaptor( const scoped_allocator_adaptor& other )
(3) (C++11 起)
scoped_allocator_adaptor( scoped_allocator_adaptor&& other )
(4) (C++11 起)
template< class OuterA2 >
scoped_allocator_adaptor( const scoped_allocator_adaptor<OuterA2, InnerAllocs...>& other )
(5) (C++11 起)
template< class OuterA2 >
scoped_allocator_adaptor( scoped_allocator_adaptor<OuterA2, InnerAllocs...>&& other )
(6) (C++11 起)
1)
默認構造函數值初始化OuterAlloc基類和內的分配器成員對象,如果使用的實施.
Original:
Default constructor: value-initializes the OuterAlloc base class and the inner allocator member object, if used by the implementation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
構造的基類OuterAllocstd::forward<OuterA2>(outerAlloc),和內分配器與innerAllocs....
Original:
Constructs the base class OuterAlloc from std::forward<OuterA2>(outerAlloc), and the inner allocators with innerAllocs....
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
複製構造函數:初始化相應的分配器other每個分配器
Original:
Copy-constructor: initializes each allocator from the corresponding allocator of other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
移動構造函數:每個分配器移動到相應的分配器other*this
Original:
Move-constructor: moves each allocator from the corresponding allocator of other into *this
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5)
初始化每個分配器的other從相應的分配器
Original:
Initializes each allocator from the corresponding allocator of other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
從相應的分配器other的初始化每個分配器,使用移動語義.
Original:
Initializes each allocator from the corresponding allocator of other, using move semantics.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 參數

outerAlloc -
外分配器的構造函數的參數
Original:
constructor argument for the outer allocator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
innerAllocs... -
構造函數的參數內的分配器
Original:
constructor arguments for the inner allocators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
other -
另一個std::scoped_allocator_adaptor
Original:
another std::scoped_allocator_adaptor
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 例外

2-6)
noexcept specification:  
noexcept
  (C++11 起)

[编辑] 另請參閱

分配未初始化的存儲,使用外部的分配器
Original:
allocates uninitialized storage using the outer allocator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數) [edit]
構造一個對象分配的存儲,傳遞給它的構造函數(如適用)內的分配器
Original:
constructs an object in allocated storage, passing the inner allocator to its constructor if appropriate
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成員函數) [edit]