std::vector<bool>
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
| Definido en el archivo de encabezado <vector>
|
||
template<class Allocator = std::allocator<bool>> class vector<bool, Allocator>; |
||
std::vector<bool> es una especialización eficiente con el espacio de std::vector para la bool tipo . Original:
std::vector<bool> is a space-efficient specialization of std::vector for the type bool. 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.
La manera en que se hace
std::vector<bool> eficiente del espacio (así como si está optimizado en todos) de la implementación. Una optimización potencial implica coalescentes elementos del vector de manera que cada elemento ocupa un único bit en vez de un bool de tamaño de byte .Original:
The manner in which
std::vector<bool> is made space efficient (as well as whether it is optimized at all) is implementation defined. One potential optimization involves coalescing vector elements such that each element occupies a single bit instead of a byte-sized bool.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.
std::vector<bool> comporta de manera similar a std::vector, pero con el fin de ser eficiente en espacio, que:Original:
std::vector<bool> behaves similarly to std::vector, but in order to be space efficient, it: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.
- No necesariamente almacenar sus datos en un único trozo contiguo de memoria .Original:Does not necessarily store its data in a single contiguous chunk of memory.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - Expone
std::vector<bool>::referencecomo un método de acceso a bits individuales .Original:Exposesstd::vector<bool>::referenceas a method of accessing individual bits.The text has been machine-translated via