I have a bunch of utility functions that are not part of any class, which return a unique_ptr<MyGraph>
I have been using the %extend
directive for other similar cases where the function is part of a class. But %extend
is specifically used to extend classes.
How can I extend my class-less utility functions to return a raw pointer?