std::scoped_allocator_adaptor::scoped_allocator_adaptor
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| 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 起) |
默認構造函數值初始化
2) 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.
You can help to correct and verify the translation. Click here for instructions.
構造的基類
3) OuterAlloc從std::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.
You can help to correct and verify the translation. Click here for instructions.
複製構造函數:初始化相應的分配器
4) other每個分配器Original:
Copy-constructor: initializes each allocator from the corresponding allocator of
otherThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
移動構造函數:每個分配器移動到相應的分配器
5) other*thisOriginal:
Move-constructor: moves each allocator from the corresponding allocator of
other into *thisThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
初始化每個分配器的
6) other從相應的分配器Original:
Initializes each allocator from the corresponding allocator of
otherThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
從相應的分配器
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.
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_adaptorOriginal: another std::scoped_allocator_adaptorThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 例外
2-6)[编辑] 另請參閱
| 分配未初始化的存儲,使用外部的分配器 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. (公共成員函數) | |
| 構造一個對象分配的存儲,傳遞給它的構造函數(如適用)內的分配器 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. (公共成員函數) | |