#ifndef RUSTDUCK_BRIDGE_MEMORY_HANDLER_H
#define RUSTDUCK_BRIDGE_MEMORY_HANDLER_H
#include <memory>
class RustDuckMemoryHandler final {
public:
RustDuckMemoryHandler();
~RustDuckMemoryHandler() noexcept;
RustDuckMemoryHandler(const RustDuckMemoryHandler &) = delete;
RustDuckMemoryHandler &operator=(const RustDuckMemoryHandler &) = delete;
void *raw() const noexcept;
std::shared_ptr<void> retain() const noexcept;
private:
std::shared_ptr<void> handler_;
};
std::unique_ptr<RustDuckMemoryHandler> rustduck_memory_handler_new();
#endif