logoalt Hacker News

tyromaniac • today at 1:20 PM • 1 reply • view on HN

Or pull out the C++ and use std::vector<bool>,... But you should probably never do that


Replies

randomNumber7 • today at 2:31 PM

I heard the C++ guys regret defining vector<bool> using 1 bit per value.

Also for most code it will be premature optimization to worry about that.

➕ show 1 reply