A 2 Tuple. Differs from Tuple in that the two elements can be different type. More...
A 2 Tuple. Differs from Tuple in that the two elements can be different type.
Public Member Functions | |
Tuple () | |
Null constructor for lists. | |
Tuple (const Type1 &first, const Type2 &second) | |
Construct from components. | |
Tuple (Istream &is) | |
Construct from Istream. | |
Type1 | first () const |
Return first. | |
Type1 & | first () |
Return first. | |
Type2 | second () const |
Return second. | |
Type2 & | second () |
Return second. | |
Tuple< Type1, Type2 > | reverseTuple () const |
Return reverse pair. |
Friends | |
bool | operator== (const Tuple< Type1, Type2 > &a, const Tuple< Type1, Type2 > &b) |
bool | operator!= (const Tuple< Type1, Type2 > &a, const Tuple< Type1, Type2 > &b) |
Istream & | operator>> (Istream &is, Tuple< Type1, Type2 > &p) |
Ostream & | operator (Ostream &os, const Tuple< Type1, Type2 > &p) |
|
inline |
Construct from Istream.
Definition at line 85 of file Tuple.H.
References IOstream::check(), Istream::readBegin(), and Istream::readEnd().
|
inline |