#include <tracked.h>
Public Member Functions | |
size_t | num_copies () |
size_t | num_moves () |
Tracked & | operator= (const Tracked &that) |
Tracked & | operator= (Tracked &&that) |
Tracked () | |
Tracked (const T &val) | |
Tracked (const Tracked &that) | |
Tracked (Tracked &&that) | |
const T & | val () const |
Private Attributes | |
std::shared_ptr< size_t > | num_copies_ = std::make_shared<size_t>(0) |
std::shared_ptr< size_t > | num_moves_ = std::make_shared<size_t>(0) |
T | val_ |
Friends | |
bool | operator!= (const Tracked &a, const Tracked &b) |
bool | operator== (const Tracked &a, const Tracked &b) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |