moveVector.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moveVector.cc
Go to the documentation of this file.
1 #include "osl/container/moveVector.h"
2 #include <boost/foreach.hpp>
3 #include <algorithm>
4 #include <iostream>
5
6 std::ostream& osl::container::operator<<(std::ostream& os,MoveVector const& mv)
7 {
8 os<< "MoveVector" << std::endl;
9 BOOST_FOREACH(Move m, mv) {
10 os << m << std::endl;
11 }
12 return os<<std::endl;
13 }
14 bool osl::container::operator<(const MoveVector& l, const MoveVector& r)
15 {
16 return std::lexicographical_compare(l.begin(), l.end(),
17 r.begin(), r.end());
18 }
19
20 // ;;; Local Variables:
21 // ;;; mode:c++
22 // ;;; c-basic-offset:2
23 // ;;; End: