15 #ifndef ABSL_CONTAINER_INTERNAL_TEST_INSTANCE_TRACKER_H_ 16 #define ABSL_CONTAINER_INTERNAL_TEST_INSTANCE_TRACKER_H_ 24 namespace test_internal {
116 return o <<
"[value:" << v.
value() <<
"]";
164 ResetCopiesMovesSwaps();
167 if (instances() != 0) std::abort();
168 if (live_instances() != 0) std::abort();
272 #endif // ABSL_CONTAINER_INTERNAL_TEST_INSTANCE_TRACKER_H_
bool operator>(const BaseCountedInstance &x) const
BaseCountedInstance(int x)
static void SwapImpl(BaseCountedInstance &lhs, BaseCountedInstance &rhs)
static int num_live_instances_
static ABSL_CONST_INIT const weak_ordering equivalent
void ResetCopiesMovesSwaps()
static bool supports_move()
bool operator>=(const BaseCountedInstance &x) const
static ABSL_CONST_INIT const weak_ordering less
bool operator<(const BaseCountedInstance &x) const
static int num_comparisons_
CopyableOnlyInstance(int x)
BaseCountedInstance(const BaseCountedInstance &x)
absl::weak_ordering compare(const BaseCountedInstance &x) const
static ABSL_CONST_INIT const weak_ordering greater
friend std::ostream & operator<<(std::ostream &o, const BaseCountedInstance &v)
CopyableMovableInstance(int x)
friend void swap(CopyableOnlyInstance &lhs, CopyableOnlyInstance &rhs)
static int num_instances_
bool operator!=(const BaseCountedInstance &x) const
bool operator<=(const BaseCountedInstance &x) const
static bool supports_move()
void swap(absl::InlinedVector< T, N, A > &a, absl::InlinedVector< T, N, A > &b) noexcept(noexcept(a.swap(b)))
MovableOnlyInstance(int x)
int start_live_instances_
BaseCountedInstance & operator=(const BaseCountedInstance &x)
int live_instances() const
BaseCountedInstance(BaseCountedInstance &&x)
friend void swap(MovableOnlyInstance &lhs, MovableOnlyInstance &rhs)
static bool supports_move()
BaseCountedInstance & operator=(BaseCountedInstance &&x)
friend void swap(CopyableMovableInstance &lhs, CopyableMovableInstance &rhs)
bool operator==(const BaseCountedInstance &x) const