File: moveVector.cc

package info (click to toggle)
libosl 0.6.0-3.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 148,792 kB
  • ctags: 151,985
  • sloc: cpp: 131,133; ansic: 7,228; ruby: 1,290; makefile: 569; perl: 309; sh: 35
file content (23 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "osl/container/moveVector.h"
#include <boost/foreach.hpp>
#include <algorithm>
#include <iostream>

std::ostream& osl::container::operator<<(std::ostream& os,MoveVector const& mv)
{
  os<< "MoveVector" << std::endl;
  BOOST_FOREACH(Move m, mv) {
    os << m << std::endl;
  }
  return os<<std::endl;
}
bool osl::container::operator<(const MoveVector& l, const MoveVector& r)
{ 
  return std::lexicographical_compare(l.begin(), l.end(),
				      r.begin(), r.end()); 
}

// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: