bkille / BitLib

Provides a bit-vector, an optimized replacement of the infamous std::vector<:b:ool>. In addition to the bit-vector, the library also provides implementations of STL algorithms tailored for bit-vectors.
BSD 3-Clause "New" or "Revised" License
68 stars 4 forks source link

Add bit::flip #10

Closed bkille closed 2 years ago

bkille commented 2 years ago

This is the same thing as std::transform with a function [](auto b) { return ~b; }

bkille commented 2 years ago

bad issue, the op provided to transform can do this.