The `fetch_add` operation atomically adds a value to an object and returns its original value, making it ideal for high-performance, lock-free counters and accumulators in multi-threaded applications without explicit locks.
Open the full topic