Struct vector2::key_compare

Nested Relationships

This struct is a nested type of Template Class vector2.

Struct Documentation

struct key_compare

Needed for using vectors as keys in a map.

Public Functions

template<typename U = T, typename std::enable_if<!std::is_floating_point<U>::value, int>::type = 0>
inline bool operator()(const vector2<U> &lhs, const vector2<U> &rhs) const
template<typename U = T, typename std::enable_if<std::is_floating_point<U>::value, int>::type = 0>
inline bool operator()(const vector2<U> &lhs, const vector2<U> &rhs) const