This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub knshnb/competitive_library
#include "src/Helper/PairOperations.hpp"
template <class A, class B, class C, class D> std::pair<A, B>& operator+=(std::pair<A, B>& x, const std::pair<C, D>& y) { return x = {x.first + y.first, x.second + y.second}; } template <class A, class B, class C, class D> std::pair<A, B> operator+(std::pair<A, B> x, const std::pair<C, D>& y) { return x += y; } template <class A, class B, class C, class D> std::pair<A, B>& operator-=(std::pair<A, B>& x, const std::pair<C, D>& y) { return x = {x.first - y.first, x.second - y.second}; } template <class A, class B, class C, class D> std::pair<A, B> operator-(std::pair<A, B> x, const std::pair<C, D>& y) { return x -= y; } template <class T, class integer> T& get(std::vector<std::vector<T>>& v, const std::pair<integer, integer>& p) { return v[p.first][p.second]; }
#line 1 "src/Helper/PairOperations.hpp" template <class A, class B, class C, class D> std::pair<A, B>& operator+=(std::pair<A, B>& x, const std::pair<C, D>& y) { return x = {x.first + y.first, x.second + y.second}; } template <class A, class B, class C, class D> std::pair<A, B> operator+(std::pair<A, B> x, const std::pair<C, D>& y) { return x += y; } template <class A, class B, class C, class D> std::pair<A, B>& operator-=(std::pair<A, B>& x, const std::pair<C, D>& y) { return x = {x.first - y.first, x.second - y.second}; } template <class A, class B, class C, class D> std::pair<A, B> operator-(std::pair<A, B> x, const std::pair<C, D>& y) { return x -= y; } template <class T, class integer> T& get(std::vector<std::vector<T>>& v, const std::pair<integer, integer>& p) { return v[p.first][p.second]; }