• timhh@programming.dev
    link
    fedilink
    arrow-up
    23
    ·
    22 hours ago

    Well there are containers that store booleans in single bits (e.g. std::vector<bool> - which was famously a big mistake).

    But in the general case you don’t want that because it would be slower.