← API Reference Struct

asge::ecs::EntityPair

An unordered pair of Entity, usable as a std::set/map key.

#include <Entity.hpp>

Collaboration

classDiagram
    class N2["asge::ecs::Entity"]
    class N1["asge::ecs::EntityPair"]
    N1 --> N2 : m_First
    click N2 href "structasge_1_1ecs_1_1Entity.html"
    click N1 href "structasge_1_1ecs_1_1EntityPair.html"

Two EntityPair values compare equal (neither is less than the other) regardless of which entity was m_First/m_Second when constructed — see MakeCanonicalPair, which is how one gets built consistently.

Public Attributes

#Entity m_First
#Entity m_Second

Friends

#friend operator<