Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/range/iterator_range_hash.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Boost.Range library
0002 //
0003 //  Copyright Neil Groves 2014
0004 //  Use, modification and distribution is subject to the Boost Software
0005 //  License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 //  http://www.boost.org/LICENSE_1_0.txt)
0007 //
0008 // For more information, see http://www.boost.org/libs/range/
0009 //
0010 #include <boost/range/iterator_range_core.hpp>
0011 #include <boost/functional/hash.hpp>
0012 
0013 namespace boost
0014 {
0015 
0016 template<class T>
0017 std::size_t hash_value(const iterator_range<T>& rng)
0018 {
0019     return boost::hash_range(rng.begin(), rng.end());
0020 }
0021 
0022 } // namespace boost