Template Struct Size

Struct Documentation

template<typename T>
struct Size

Public Types

using ValueType = T

Public Functions

inline constexpr Size() noexcept
constexpr Size(Size const&) noexcept = default
Size &operator=(Size const&) noexcept = default
template<typename U> inline requires constexpr is_exactly_representable< T, U > Size (Size< U > const &other) noexcept
template<typename U>
inline explicit constexpr Size(Size<U> const &other) noexcept
template<typename WidthType, typename HeightType>
inline constexpr Size(WidthType &&width, HeightType &&height) noexcept

Public Members

Width<T> width
Height<T> height

Friends

friend bool operator==(Size const &lhs, Size const &rhs) = default
friend bool operator!=(Size const &lhs, Size const &rhs) = default