by foobarbazqux · 13y ago · 0 comments
This was confusing to read in the context of C++, because I typically associate that view with functional programming. Don't the majority of C++ classes require mutable data to work properly, even the ones in the STL? How do you write std::vector<> without mutable data?
Ok, so I looked a bit more, and it turns out there's a "mutable" keyword...