Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
delete-with.h File Reference

Ad-hoc smart pointer useful when interfacing with C code. More...

Go to the source code of this file.

Classes

struct  Inkscape::Util::Deleter< f >
 Turn a function into a function object that can be used as a deleter for a smart pointer. More...
 

Namespaces

namespace  Inkscape
 Helper class to stream background task notifications as a series of messages.
 
namespace  Inkscape::Util
 Miscellaneous supporting code.
 

Functions

template<auto f, typename T >
auto Inkscape::Util::delete_with (T *p)
 Wrap a raw pointer in a std::unique_ptr with a custom function as the deleter.
 

Detailed Description

Ad-hoc smart pointer useful when interfacing with C code.

Definition in file delete-with.h.