stlab::copy_on_write 1.0.3
Copy-on-write wrapper for any type
Loading...
Searching...
No Matches
copy_on_write.hpp File Reference

Copy-on-write wrapper implementation. More...

#include <atomic>
#include <cassert>
#include <cstddef>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  stlab::copy_on_write< T >

Detailed Description

Copy-on-write wrapper implementation.

This file contains the complete implementation of stlab::copy_on_write, a thread-safe copy-on-write wrapper for any type that models Regular. The implementation uses atomic reference counting and provides lazy copying semantics.

Definition in file copy_on_write.hpp.