An atomic class that guarantees atomic updates to its contained value.