MCPcopy Create free account
hub / github.com/AlexInLog/ReactivePlusPlus / custom_disposable

Class custom_disposable

src/tests/rpp/test_disposables.cpp:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace
17{
18 struct custom_disposable : public rpp::interface_disposable
19 {
20 custom_disposable() = default;
21
22 bool is_disposed() const noexcept final { return dispose_count > 1; }
23
24 void dispose_impl(rpp::interface_disposable::Mode) noexcept final { ++dispose_count; }
25
26 size_t dispose_count{};
27 };
28} // namespace
29
30TEST_CASE_TEMPLATE("disposable keeps state", TestType, rpp::details::disposables::dynamic_disposables_container, rpp::details::disposables::static_disposables_container<1>)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected