template<class T>
Magnum::Array1D class

One-dimensional array.

Template parameters
T Data type

Base classes

template<UnsignedInt dimensions, class T>
class Array

Constructors, destructors, conversion operators

Array1D() defaulted constexpr
Default constructor.
Array1D(T x) constexpr
Array1D(const Array<1, T>& other) constexpr
Copy constructor.

Public functions

auto x() -> T&
X component.
auto x() const -> T constexpr

Function documentation

template<class T>
Magnum::Array1D<T>::Array1D() defaulted constexpr

Default constructor.

Sets all components to their default-constructed values.

template<class T>
Magnum::Array1D<T>::Array1D(T x) constexpr


x X component

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.