EleFits  4.0.0
A modern C++ API on top of CFitsIO

◆ moveTo()

template<typename T >
std::vector<std::decay_t<T> >& Euclid::Fits::VecColumn< T >::moveTo ( std::vector< std::decay_t< T >> &  destination)

Move the vector outside the column.

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

VecColumn<float> column(...);
column.moveTo(data);
// Values have been moved to data without copy.
// column.vector() is empty now.
Warning
The column data is not usable anymore after this call.
std::vector
STL class.
Euclid::Fits::Column::data
const T * data() const
Const pointer to the first data element.