MCPcopy Create free account
hub / github.com/cameron314/readerwriterqueue / UniquePtrWrapper

Class UniquePtrWrapper

tests/unittests/unittests.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60#if MOODYCAMEL_HAS_EMPLACE
61class UniquePtrWrapper
62{
63public:
64 UniquePtrWrapper() = default;
65 UniquePtrWrapper(std::unique_ptr<int> p) : m_p(std::move(p)) {}
66 int get_value() const { return *m_p; }
67 std::unique_ptr<int>& get_ptr() { return m_p; }
68private:
69 std::unique_ptr<int> m_p;
70};
71#endif
72
73/// Extracted from private static method of ReaderWriterQueue

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected