Comment Comment by andrepd > C++ has std::bitset and std::vectorNotably, this is not the case. C++ std::vector is specialised for bools to pack bits into words, causing an untold array (heh) of headaches.And "wasteful" is doing a lot of lifting here. In terms of memory usage? Yes. In terms of CPU? The other way around. parent andrepd 10 months ago
Notably, this is not the case. C++ std::vector is specialised for bools to pack bits into words, causing an untold array (heh) of headaches.
And "wasteful" is doing a lot of lifting here. In terms of memory usage? Yes. In terms of CPU? The other way around.