boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
100 stars 116 forks source link

hash_value #108

Open gast128 opened 5 years ago

gast128 commented 5 years ago

Dear all,

it would be nice if the container library had overloads for hashing (both Boost as std), e.g.:

namespace boost
{
    template<typename Value, std::size_t Capacity>
    std::size_t hash_value(const boost::container::static_vector<Value, Capacity>& crvec)
    {
        return boost::hash_range(crvec.cbegin(), crvec.cend());
    }
}