Specialization of vector for elements of type bool.
More...
#include <geogram/basic/memory.h>
Specialization of vector for elements of type bool.
This specialization uses std::vector<bool> directly without memory alignment.
- See also
- vector
Definition at line 795 of file memory.h.
◆ vector() [1/3]
Creates an empty vector.
Definition at line 800 of file memory.h.
◆ vector() [2/3]
Creates a pre-allocated vector.
Constructs a container with size
elements. Each element is default-constructed.
- Parameters
-
[in] | size | Number of elements to allocate |
Definition at line 805 of file memory.h.
◆ vector() [3/3]
Creates a pre-initialized vector.
Constructs a container with size
elements. Each element is a copy of val
.
- Parameters
-
[in] | size | Number of elements to allocate |
[in] | val | Initial value of the elements |
Definition at line 810 of file memory.h.
◆ size()
Gets the number of elements.
- Returns
- The actual number of elements in the vector
Definition at line 815 of file memory.h.
The documentation for this class was generated from the following file: