std::allocator_traits::max_size
Da cppreference.com
< cpp | memory | allocator traits
![]() |
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 <memory>
|
||
static size_type max_size( Alloc& a ) |
(desde C++11) | |
Se possível, obtém o tamanho de alocação máximo teoricamente possível a partir do
a
alocador, chamandoOriginal:
If possible, obtains the maximum theoretically possible allocation size from the allocator
a
, by callingThe 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.
a.max_size()
Se o acima não é possível (por exemplo
a
não tem a função de membro max_size()
), então retornaOriginal:
If the above is not possible (e.g.
a
does not have the member function max_size()
,), then returnsThe 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.
std::numeric_limits<size_type>::max()
[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
Tamanho de alocação máximo teórico
Original:
Theoretical maximum allocation size
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] Veja também
retorna o tamanho maior alocação suportado Original: returns the largest supported allocation size The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (of std::allocator função pública membro)
|