EleFits  5.3.0
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches

◆ moveTo()

Container & moveTo ( Container destination)

Move the container.

This method is used to take ownership on the data without copying it. Example usage:

VecRaster<float> raster(...);
raster.moveTo(data);
// Values have been moved to data without copy.
// raster.container() is in an unspecified state now.
T * data()
Definition: DataContainer.h:235
Data of a n-dimensional image (2D by default).
Definition: Raster.h:149
Warning
The container is not usable anymore after this call.