Template Class CommaInitializer#
Defined in File commaInitializer.hpp
Class Documentation#
-
template<typename ArrT>
class CommaInitializer# Allows for an Array object to be initialized with a comma separated list of values. While this is not particularly useful for large arrays, it is a very quick and easy way to initialize smaller arrays with a few values.
- Template Parameters
ArrT – The type of the Array object to be initialized.
Public Types
-
using Scalar = typename typetraits::TypeInfo<ArrT>::Scalar#
The scalar type of the Array object.
Public Functions
-
CommaInitializer() = delete#
-
template<typename T>
inline explicit CommaInitializer(ArrT &dst, const T &val)# Construct a CommaInitializer from an Array object.
- Parameters
dst – The Array object to initialize.
val – The first value to initialize the Array object with.
-
template<typename T>
inline CommaInitializer &operator,(const T &val)# Initialize the next element of the Array object.