What is the function of the keyword mutable?
Show answer and explanation
A mutable data member may be modified even through a const object, which supports logically const caches, counters, or mutexes without changing externally visible value. In a lambda, mutable lets a non-const call operator modify captured-by-value state.
A mutable data member may be modified even through a const object, which supports logically const caches, counters, or mutexes without changing externally visible value. In a lambda, mutable lets a non-const call operator modify captured-by-value state.
Connect the conclusion directly to the type, lifetime, ownership, overload-resolution rule, or library contract present in the question. State implementation dependence or a violated precondition explicitly instead of merely guessing output.