MCPcopy Create free account
hub / github.com/SergeyMakeev/SlotMap / Counter2

Class Counter2

SlotMapTest01.cpp:395–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393std::atomic<int> dtorCount2 = 0;
394
395struct Counter2
396{
397 Counter2() { ctorCount2++; }
398 ~Counter2() { dtorCount2++; }
399
400 Counter2(const Counter2&) = delete;
401 Counter2& operator=(const Counter2&) = delete;
402 Counter2(const Counter2&&) { moveCount2++; }
403 Counter2& operator=(Counter2&&)
404 {
405 moveCount2++;
406 return *this;
407 }
408};
409
410TEST(SlotMapTest, CheckMoves)
411{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected