5#include <Infinity/Types/Core/Data.hpp>
6#include <Infinity/Types/Math/Vector2.hpp>
7#include <Infinity/Types/Math/Vector3.hpp>
12 template<
typename L,
typename R>
74 template<
typename L,
typename R>
103 data.second = second;
153 return Infinity::Types::getTypeID<Pair<L, R>>();
163 std::pair<L, R> data;
165 friend class Infinity::IO::Data::PairSerializer<L, R>;
Base class for complex data types with memory wrapping and property support.
Definition Data.hpp:49
Generic container for holding two related values of potentially different types.
Definition Pair.hpp:76
virtual const Infinity::Types::TypeID & typeId() const override
Gets the runtime type identifier for this Pair instance.
Definition Pair.hpp:151
R second()
Gets the second element of the pair.
Definition Pair.hpp:134
Pair(L first, R second)
Constructs a Pair with specified values.
Definition Pair.hpp:100
Pair()
Default constructor.
Definition Pair.hpp:84
L first()
Gets the first element of the pair.
Definition Pair.hpp:119
Runtime type identifier for the Infinity type system.
Definition TypeID.hpp:71