*** empty log message ***

This commit is contained in:
Arvid Norberg
2004-10-13 15:36:44 +00:00
parent 5d455c9046
commit f324cc925e
3 changed files with 20 additions and 0 deletions

View File

@@ -244,6 +244,18 @@ namespace libtorrent
}
}
void entry::sort()
{
using boost::bind;
if (type() == dictionary_t)
{
std::stable_sort(dict().begin(), dict().end()
, bind(std::less<std::string>()
, bind(&entry::dictionary_type::value_type::first, _1)
, bind(&entry::dictionary_type::value_type::first, _2)));
}
}
void entry::print(std::ostream& os, int indent) const
{
assert(indent >= 0);