Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/range/iterator_range_hash.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | f46d142149f5 |
children |
rev | line source |
---|---|
Chris@102 | 1 // Boost.Range library |
Chris@102 | 2 // |
Chris@102 | 3 // Copyright Neil Groves 2014 |
Chris@102 | 4 // Use, modification and distribution is subject to the Boost Software |
Chris@102 | 5 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
Chris@102 | 6 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@102 | 7 // |
Chris@102 | 8 // For more information, see http://www.boost.org/libs/range/ |
Chris@102 | 9 // |
Chris@102 | 10 #include <boost/range/iterator_range_core.hpp> |
Chris@102 | 11 #include <boost/functional/hash.hpp> |
Chris@102 | 12 |
Chris@102 | 13 namespace boost |
Chris@102 | 14 { |
Chris@102 | 15 |
Chris@102 | 16 template<class T> |
Chris@102 | 17 std::size_t hash_value(const iterator_range<T>& rng) |
Chris@102 | 18 { |
Chris@102 | 19 return boost::hash_range(rng.begin(), rng.end()); |
Chris@102 | 20 } |
Chris@102 | 21 |
Chris@102 | 22 } // namespace boost |