Changeset 432
- Timestamp:
- Dec 13, 2005, 3:49:55 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/utility/stl_utility.h
r411 r432 12 12 /// 13 13 14 #include<ostream> 14 15 #include <string> 15 16 #include <utility> 16 17 #include <vector> 17 18 19 namespace std { 20 /// 21 /// Print out a pair 22 /// 23 // This is in namespace std because we have not figured out how to have 24 // pair and its operator<< in different namespaces 25 template <class T1, class T2> 26 std::ostream& operator<<(std::ostream& out, const std::pair<T1,T2>& p) 27 { out << p.first << "\t" << p.second; return out; } 28 } 29 18 30 namespace theplu { 19 31 namespace utility { 32 20 33 21 34 /// … … 37 50 } 38 51 }; 52 53 39 54 40 55 ///
Note: See TracChangeset
for help on using the changeset viewer.