* Less-than comparison on positions (needed for map since Position is used as * key value). * @param pos1 First position. * @param pos2 Second position. * @return First position is smaller than second position. */
| 174 | * @return First position is smaller than second position. |
| 175 | */ |
| 176 | inline bool operator<(const Position &pos1, const Position &pos2) |
| 177 | { |
| 178 | if (pos1.posX != pos2.posX) return pos1.posX < pos2.posX; |
| 179 | return pos1.posY < pos2.posY; |
| 180 | } |
| 181 | |
| 182 | #endif |
| 183 |
nothing calls this directly
no outgoing calls
no test coverage detected