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. |
| Заголовочный файл <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.
Copy-конструктор: инициализация каждого распределителя из соответствующего распределителя
4) otherOriginal:
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.
Move-конструктор: перемещение каждого распределителя из соответствующего распределителя
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) otherOriginal:
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. (public функция-член) | |
| создает объект выделено в хранении, передаче внутренней распределителя в его конструктор, если необходимо 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. (public функция-член) | |