std::array::max_size
De 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. |
<metanoindex/>
<tbody> </tbody> constexpr size_type max_size(); |
(depuis C++11) | |
Retourne le nombre maximal d'lments du conteneur est capable de tenir en raison des limites du systme de mise en uvre ou la bibliothque, savoir
std::distance(begin(), end()) pour le plus grand rservoir .Original:
Returns the maximum number of elements the container is able to hold due to system or library implementation limitations, i.e.
std::distance(begin(), end()) for the largest container.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.
Paramtres
(Aucun)
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.
Retourne la valeur
nombre maximum d'lments
Original:
maximum number of elements
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.
Exceptions
Complexit
Constante
Original:
Constant
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.
Notes
Cette valeur est gnralement gale
std::numeric_limits<size_type>::max(), et tmoigne de la limite thorique de la taille du rcipient. Lors de l'excution, la taille du conteneur peut tre limite une valeur infrieure max_size() par la quantit de RAM disponible .Original:
This value is typically equal to
std::numeric_limits<size_type>::max(), and reflects the theoretical limit on the size of the container. At runtime, the size of the container may be limited to a value smaller than max_size() by the amount of RAM available.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.
See also
retourne le nombre d'lments Original: returns the number of elements The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |