Luna::Tuple
Represents a sequence of fixed-size elements. Every element can have one different type.
template <typename _Ty, typename... _Tys>
class Luna::Tuple
Elements of one tuple type can be fetched by get.
Member functions
-
Constructs one tuple with every element being default-initialized.
-
Tuple(const _Ty &arg1, const _Tys &... args)
Constructs one tuple with every element being copy-initialized.
-
Tuple(_UTy1 &&arg1, _UTys &&... args)
Constructs one tuple with every element being converted from the specified value.
-
Tuple(const Tuple< _UTy1, _UTys... > &rhs)
Constructs one tuple by coping elements from another tuple.
-
Tuple(Tuple< _UTy1, _UTys... > &&rhs)
Constructs one tuple by moving elements from another tuple.
-
Tuple(const Tuple &rhs)=default
Constructs one tuple by coping elements from another tuple of the same type.
-
Constructs one tuple by moving elements from another tuple of the same type.
-
Tuple & operator=(const Tuple &rhs)
Assigns elements of one tuple by coping elements from another tuple of the same type.
-
Tuple & operator=(Tuple &&rhs)
Assigns elements of one tuple by moving elements from another tuple of the same type.
-
Tuple & operator=(const Tuple< _UTy1, _UTys... > &rhs)
Assigns elements of one tuple by coping elements from another tuple.
-
Tuple & operator=(Tuple< _UTy1, _UTys... > &&rhs)
Assigns elements of one tuple by moving elements from another tuple.
-
bool operator==(const Tuple &rhs) const
Compares two tuples for equality.
-
bool operator!=(const Tuple &rhs) const
Compares two tuples for non-equality.