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_
BaseCountedInstance(int x)
static void SwapImpl(BaseCountedInstance &lhs, BaseCountedInstance &rhs)
static int num_live_instances_
static ABSL_CONST_INIT const weak_ordering equivalent
bool operator==(const BaseCountedInstance &x) const
void ResetCopiesMovesSwaps()
int live_instances() const
static bool supports_move()
static ABSL_CONST_INIT const weak_ordering less
static int num_comparisons_
CopyableOnlyInstance(int x)
BaseCountedInstance(const BaseCountedInstance &x)
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)
bool operator<=(const BaseCountedInstance &x) const
bool operator>(const BaseCountedInstance &x) const
static int num_instances_
absl::weak_ordering compare(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)
bool operator!=(const BaseCountedInstance &x) const
int start_live_instances_
BaseCountedInstance & operator=(const BaseCountedInstance &x)
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
bool operator<(const BaseCountedInstance &x) const