Cytopia  0.3
A city building simulation game
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
std::hash< Point > Struct Reference

#include <Point.hxx>

+ Collaboration diagram for std::hash< Point >:

Public Member Functions

const size_t operator() (const Point &p) const
 

Detailed Description

Definition at line 85 of file Point.hxx.

Member Function Documentation

◆ operator()()

const size_t std::hash< Point >::operator() ( const Point p) const
inline

Definition at line 87 of file Point.hxx.

87 { return std::hash<int>()(p.x) ^ std::hash<int>()(p.y); }

The documentation for this struct was generated from the following file:
Point::y
int y
The y coordinate.
Definition: Point.hxx:20
Point::x
int x
The x coordinate.
Definition: Point.hxx:14