// -*- C++ -*-
-// Copyright (C) 2005-2020 Free Software Foundation, Inc.
+// Copyright (C) 2005-2024 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the terms
// A simple hash functor.
// hash could serve instead of this functor, but it is not yet
// standard everywhere.
-struct string_hash : public unary_function<string, size_t>
+struct string_hash
{
- inline size_t
+ size_t
operator()(const string& r_s) const
{
size_t ret = 0;