~ubuntu-branches/debian/experimental/libtorrent/experimental

« back to all changes in this revision

Viewing changes to rak/algorithm.h

  • Committer: Bazaar Package Importer
  • Author(s): Qingning Huo
  • Date: 2006-01-12 20:47:33 UTC
  • mto: (4.1.1 edgy) (6.2.1 squeeze) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060112204733-2vw5t3vdne40s8mq
Tags: upstream-0.8.2
ImportĀ upstreamĀ versionĀ 0.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#define RAK_ALGORITHM_H
39
39
 
40
40
#include <algorithm>
 
41
#include <functional>
41
42
 
42
43
namespace rak {
43
44
 
90
91
}
91
92
 
92
93
template <typename _Value>
93
 
struct
94
 
compare_base : public std::binary_function<_Value, _Value, bool> {
 
94
struct compare_base : public std::binary_function<_Value, _Value, bool> {
95
95
  bool operator () (const _Value& complete, const _Value& base) const {
96
96
    return !complete.compare(0, base.size(), base);
97
97
  }