Mutable cursor in readonly object?
I’ve been searching for the different uses of the keyword mutable
. I’ve found that it is generally used for caching, lazy computing, mutex, …
Mutable cursor in readonly object?
I’ve been searching for the different uses of the keyword mutable
. I’ve found that it is generally used for caching, lazy computing, mutex, …
Does internal state “leak” when it influences externally-visible behavior?
I have a method (in C++) which generates a value based on a parameter and the parameters from previous calls. Calling it more than once with the same parameter may generate different values each time. For example:
Does internal state “leak” when it influences externally-visible behavior?
I have a method (in C++) which generates a value based on a parameter and the parameters from previous calls. Calling it more than once with the same parameter may generate different values each time. For example:
Does internal state “leak” when it influences externally-visible behavior?
I have a method (in C++) which generates a value based on a parameter and the parameters from previous calls. Calling it more than once with the same parameter may generate different values each time. For example:
Does internal state “leak” when it influences externally-visible behavior?
I have a method (in C++) which generates a value based on a parameter and the parameters from previous calls. Calling it more than once with the same parameter may generate different values each time. For example:
Passing parameters that need to be copied by value or const reference
I have a basic (mathematical) vector class, which in my opinion benefits from C++’s operator overloading. Vector-scalar operations are defined as self-modifying functions in the class itself,
Const means Thread-safe? [closed]
Closed 8 years ago.