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

◆ make_column()

Column< typename TContainer::value_type, std::decay_t< TInfo >::Dim, DataContainerHolder< typename TContainer::value_type, TContainer > > make_column ( TInfo  info,
TContainer &&  data 
)
related

Shortcut to create a column from a column info and data without specifying the template parameters.

Template Parameters
TThe value type, should not be specified (automatically deduced)
Parameters
infoThe column info
dataThe column values, which can be either a pointer (or C array) or a vector

Example usage:

auto column = make_column(std::move(info), std::move(vector)); // Copy-less
Column< typename TContainer::value_type, std::decay_t< TInfo >::Dim, DataContainerHolder< typename TContainer::value_type, TContainer > > make_column(TInfo info, TContainer &&data)
Shortcut to create a column from a column info and data without specifying the template parameters.
Definition: Column.h:279
const Info & info() const
Get the column metadata.
T move(T... args)