I quite often have the pattern where a value should be read just once and after this reset itself. The idea is to avoid that others read the value by accident and get an older state, instead they get an "invalid/reset" value.

Is there a library function that can mimic such a behaviour?

--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster

Reply via email to