Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- #include <cassert>
- using namespace std;
- class Coordinate {
- public:
- int X, Y;
- template<typename T>
- T index(vector<vector<T>> v) {
- return v[Y][X];
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement