#include "invariant.h"
#include "small_shared_ptr.h"
#include <limits>
Go to the source code of this file.
◆ pointee_decrement_use_count()
◆ pointee_increment_use_count()
The following functions are required by copy_on_writet, and by default pass through to the member functions of copy_on_write_pointeet by the same name.
We provide these as non-members just in case a future client wants to implement a copy-on-write class, which is unable to inherit from copy_on_write_pointeet for some reason. In this case, new overloads for the functions below can be provided, with appropriate behavior for the new type.
Definition at line 219 of file cow.h.
◆ pointee_is_shareable()
◆ pointee_set_shareable()
◆ pointee_set_use_count()
template<typename Num, typename T>
◆ pointee_use_count()
◆ copy_on_write_pointeet< Num >::unshareable
Initial value:=
(std::numeric_limits<Num>::max)()
Definition at line 207 of file cow.h.