Lumiera  0.pre.03
»edit your freedom«
unique-malloc-owner.hpp File Reference

Go to the source code of this file.

Description

Helper to deal with C-MALLOCed memory automatically.

This solution is a simple dress-up of std::unique_ptr, mostly for the purpose of documenting the issue at the usage site.

See also
lib::meta::demangleCxx
UniqueMallocOwner_test

Definition in file unique-malloc-owner.hpp.

#include "lib/error.hpp"
#include <memory>

Classes

class  UniqueMallocOwner< X >
 Ownership token for a piece of heap memory allocated in plain-C style. More...
 

Namespaces

 lib
 Implementation namespace for support and library code.