Espacios de nombres
Variantes

std::vector<bool>

De cppreference.com
 
 
 
std::vector<bool>
Las funciones miembro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Elemento acceso
Original:
Element access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Los iteradores
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Capacidad
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Modificadores
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::vector<bool> specific
vector<bool>::flip
vector<bool>::swap
 
<tbody> </tbody>
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.
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.
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.
  • 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>::reference como un método de acceso a bits individuales .
    Original:
    Exposes std::vector<bool>::reference as a method of accessing individual bits.
    The text has been machine-translated via