MCPcopy Create free account
hub / github.com/boost-ext/te / Storage

Class Storage

test/te.cpp:558–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556class Dtor;
557
558struct Storage {
559 template <class T>
560 static auto &calls() {
561 static auto calls = 0;
562 return calls;
563 }
564
565 Storage() { ++calls<Ctor>(); }
566 Storage(const Storage &) { ++calls<CopyCtor>(); }
567 Storage(Storage &&) { ++calls<MoveCtor>(); }
568 ~Storage() { ++calls<Dtor>(); }
569
570 double someDummyDataSoTypeIsNonEmpty = 0;
571};
572
573test should_support_ref_storage = [] {
574 Storage::calls<Ctor>() = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected