Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- template <class Type = double>
- class TPoint : private std::pair<Type, Type> {
- public:
- Type x = &first;
- Type y = &second;
- TPoint(Type x, Type y) : first(x), second(y) { };
- Type& x() { return first; };
- Type& y() { return second; };
- };
- typedef TPoint<> Point;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement