GF2::Vector — Clear Completely

Clears out the contents of a bit-vector:

constexpr Vector &clear();

The bit-vector’s size() becomes 0, but its capacity is not changed. Method returns a reference to *this so it can be chained with other calls.

Example
#include <GF2/GF2.h>
int main()
{
    GF2::Vector<> v("11111111");
    std::cout << "v: " << v << '\n';
    v.clear();
    std::cout << "v: " << v << '\n';
}
Output
v: 11111111
v:
See Also

pop