oops, it was missing also, change the return type from void to VImage. This makes chaining possible, eg.: VImage memory = im.write( Viameg::new_memory() );
This is the vips8 C++ binding. The old vips7 binding is still there, but this one is better. See the vips API docs for documentation.