xxxxxxxxxx
/+dub.sdl:
dependency "automem" version="~>0.3.2"
+/
// can be @safe if the allocator has @safe functions
import automem;
import std.stdio : writeln;
void main() {
import stdx.allocator.mallocator: Mallocator;
import std.algorithm: move;
struct Point {
int x;
int y;
this(int a, int b) inout
{
x = a;
y = b;
}
}
auto u1 = Unique!(immutable(Point), Mallocator)(2, 3);
}