MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / ThrowingMovable

Method ThrowingMovable

tests/unittests/unittests.cpp:219–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 static void reset() { ctorCount() = 0; destroyCount() = 0; }
218
219 explicit ThrowingMovable(int id, bool throwOnCctor = false, bool throwOnAssignment = false, bool throwOnSecondCctor = false)
220 : id(id), moved(false), copied(false), throwOnCctor(throwOnCctor), throwOnAssignment(throwOnAssignment), throwOnSecondCctor(throwOnSecondCctor)
221 {
222 ctorCount().fetch_add(1, std::memory_order_relaxed);
223 }
224
225 ThrowingMovable(ThrowingMovable const& o)
226 : id(o.id), moved(false), copied(true), throwOnCctor(o.throwOnCctor), throwOnAssignment(o.throwOnAssignment), throwOnSecondCctor(false)

Callers

nothing calls this directly

Calls 1

fetch_addMethod · 0.45

Tested by

no test coverage detected