std::scoped_allocator_adaptor::inner_allocator
Da cppreference.com
< cpp | memory | scoped allocator adaptor
![]() |
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. |
Definido no cabeçalho <scoped_allocator>
|
||
inner_allocator_type& inner_allocator() |
(1) | (desde C++11) |
const inner_allocator_type& inner_allocator() const |
(2) | (desde C++11) |
Obtém uma referência para o alocador interior usado para declarar este
scoped_allocator_adaptor
.Original:
Obtains a reference to the inner allocator used to declare this
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.
You can help to correct and verify the translation. Click here for instructions.
Se sizeof...(InnerAllocs)==0, isto é, não alocadores internos foram declarados, *this retornos. Caso contrário devolve uma referência a std::scoped_allocator_adaptor<InnerAllocs...>, isto é, um alocador escopo composto por todos os alocadores internos de *this, com o alocador primeiro interna a tornar-se o alocador exterior.
Original:
If sizeof...(InnerAllocs)==0, that is, no inner allocators were declared, returns *this. Otherwise returns a reference to std::scoped_allocator_adaptor<InnerAllocs...>, that is, a scoped allocator composed of all inner allocators of *this, with the first inner allocator becoming 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.
You can help to correct and verify the translation. Click here for instructions.
Índice |
[editar] Parâmetros
(Nenhum)
Original:
(none)
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.
[editar] Valor de retorno
Uma referência para o alocador de interior, que é em si um
std::scoped_allocator_adaptor
.Original:
A reference to the inner allocator, which is itself a
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.
You can help to correct and verify the translation. Click here for instructions.
[editar] Exceções
1-2)[editar] Veja também
obtém uma referência outer_allocator Original: obtains an outer_allocator referenceThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) |