1 // Boost.Range library 2 // 3 // Copyright Neil Groves 2014 4 // Use, modification and distribution is subject to the Boost Software 5 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 6 // http://www.boost.org/LICENSE_1_0.txt) 7 // 8 // For more information, see http://www.boost.org/libs/range/ 9 // 10 #include <boost/range/iterator_range_core.hpp> 11 #include <boost/functional/hash.hpp> 12 13 namespace boost 14 { 15 16 template<class T> hash_value(const iterator_range<T> & rng)17std::size_t hash_value(const iterator_range<T>& rng) 18 { 19 return boost::hash_range(rng.begin(), rng.end()); 20 } 21 22 } // namespace boost 23