using offset = std::tuple woud be preferable However, tuple has non-public members and therefore tuples cannot be template arguments.
| 192 | // using offset = std::tuple<int,int,int> woud be preferable |
| 193 | // However, tuple has non-public members and therefore tuples cannot be template arguments. |
| 194 | struct offset { |
| 195 | int x,y,z; |
| 196 | constexpr offset(int _x, int _y, int _z) : x(_x), y(_y), z(_z) {}; |
| 197 | }; |
| 198 | |
| 199 | inline coord operator+(coord pos, offset off) { |
| 200 | return coord(pos.x + off.x, pos.y + off.y, pos.z + off.z); |
no outgoing calls
no test coverage detected