//======================================================================= // Copyright 1997, 1998, 1999, 2000 University of Notre Dame. // Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================================================= #include #include #include #include #include template struct trivial_id { std::size_t operator[](Integral i) { return i; } std::size_t operator[](Integral i) const { return i; } }; int main() { using namespace std; using boost::bucket_sorter; const std::size_t N = 10; vector bucket(N); for (std::size_t i=0; i ID; typedef bucket_sorter::iterator, ID> BS; BS my_bucket_sorter(N, N, bucket.begin()); for (std::size_t ii=0; ii