8 static std::atomic<size_t> g_snapshot_count;
10 SnapshotBase::SnapshotBase() { g_snapshot_count++; }
12 SnapshotBase::SnapshotBase(
const SnapshotBase &other) { g_snapshot_count++; }
14 SnapshotBase::~SnapshotBase() { g_snapshot_count--; }
16 size_t SnapshotBase::instanceCount() {
return g_snapshot_count; }