#include <Magnum/Array.h>
template<class T>
Array1D class
One-dimensional array.
Template parameters | |
---|---|
T | Data type |
Base classes
-
template<UnsignedInt dimensions, class T>class Array<1, T> deprecated in Git master
- Array.
Constructors, destructors, conversion operators
- Array1D() defaulted constexpr
- Default constructor.
- Array1D(T x) constexpr
- Constructor.
-
Array1D(const Math::
Vector<1, T>& vector) constexpr - Construct from a vector.
Public functions
Function documentation
template<class T>
Magnum:: Array1D<T>:: Array1D() defaulted constexpr
Default constructor.
Sets all components to their default-constructed values.
template<class T>
T Magnum:: Array1D<T>:: x() const constexpr
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<class T>
template<class T>
Debug& operator<<(Debug& debug,
const Array1D<T>& value)
Debug output operator.