bit::matrix
— Minimize the Space Used
Potentially change the capacity of a bit-matrix.
1constexpr bit::matrix &shrink_to_fit();
- 1
-
This is a request to minimize the unused/excess
matrix::row_capacity
andmatrix::col_capacity
. May do nothing.
The method returns *this
, so you can chain it with other calls.
The method will not change the dimensions of a bit-matrix (so rows()
, cols()
, and size()
remain unchanged). No elements are added or deleted.
If the capacity does change, all the old values are unaltered, but be aware that any pre-existing element references are invalidated. |