MCPcopy Create free account
hub / github.com/pybind/pybind11 / BoolWrapper

Method BoolWrapper

tests/test_scoped_critical_section.cpp:33–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31class BoolWrapper {
32public:
33 explicit BoolWrapper(bool value) : value_{value} {}
34 bool get() const { return value_.load(std::memory_order_acquire); }
35 void set(bool value) { value_.store(value, std::memory_order_release); }
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected