Go to the documentation of this file.
24 #ifndef _ORDEREDPAIR_HPP_
25 #define _ORDEREDPAIR_HPP_
51 os <<
"(" << p.
x <<
"," << p.
y <<
")";
58 char open=
'\0', comma=
'\0', close=
'\0';
59 is >> open >> p.
x >> comma >> p.
y >> close;
61 if (open!=
'(' || comma!=
',' || close!=
')')
62 throw std::runtime_error(
"[OrderedPair::operator>>] Unexpected input.");
69 return a.
x==b.
x && a.
y==b.
y;
119 #endif // _ORDEREDPAIR_HPP_