~ubuntu-branches/ubuntu/precise/libtorrent/precise

« back to all changes in this revision

Viewing changes to src/tracker/tracker_container.cc

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Rivas
  • Date: 2007-09-11 15:12:31 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070911151231-brompt7pecvfbaau
Tags: 0.11.8-1
* New upstream version
* debian/patches/update-changelog.patch:
 + Updated with the new changelog.
* debian/control:
 + Added the Homepage field, deleted Homepages from the descriptions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// libTorrent - BitTorrent library
2
 
// Copyright (C) 2005-2006, Jari Sundell
 
2
// Copyright (C) 2005-2007, Jari Sundell
3
3
//
4
4
// This program is free software; you can redistribute it and/or modify
5
5
// it under the terms of the GNU General Public License as published by
106
106
  return itr;
107
107
}
108
108
 
 
109
TrackerContainer::const_iterator
 
110
TrackerContainer::find_enabled(const_iterator itr) const {
 
111
  while (itr != end() && !itr->second->is_enabled())
 
112
    ++itr;
 
113
 
 
114
  return itr;
 
115
}
 
116
 
109
117
TrackerContainer::iterator
110
118
TrackerContainer::begin_group(int group) {
111
119
  return std::find_if(begin(), end(), rak::less_equal(group, rak::mem_ref(&value_type::first)));