A simple change that just added constness to all the non-mutating functions. Handy because it helps somewhat clarify the API, allows references to be passed around that can generate noise, but not mutate state, and also some hand-wavy thing about compilers liking constness when possible.
A simple change that just added constness to all the non-mutating functions. Handy because it helps somewhat clarify the API, allows references to be passed around that can generate noise, but not mutate state, and also some hand-wavy thing about compilers liking constness when possible.