stlab-copy-on-write 1.0.4
Copy-on-write wrapper for any type
|
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 > |
Namespaces | |
namespace | stlab |
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.