Commit 0237713d by Francois Gygi

added vector header to remove dependency on other headers

git-svn-id: http://qboxcode.org/svn/qb/trunk@1196 cba15fb0-1239-40c8-b417-11db7ca47a34
parent bf93f5c4
......@@ -18,14 +18,15 @@
#ifndef VECTORLESS_H
#define VECTORLESS_H
#include <vector>
template <class T>
struct VectorLess
{
// function object for indirect comparison of vector elements
public:
vector<T>& a_;
VectorLess<T>(vector<T>& a) : a_(a) {};
std::vector<T>& a_;
VectorLess<T>(std::vector<T>& a) : a_(a) {};
bool operator() (int i, int j) const
{
return a_[i] < a_[j];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment