r270116 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Apr 3 09:47:00 GMT 2019


Author: redi
Date: Wed Apr  3 09:47:47 2019
New Revision: 270116

URL: https://gcc.gnu.org/viewcvs?rev=270116&root=gcc&view=rev
Log:
Define std::hash specializations for C++17 PMR strings

These hash specializations should have been added when the pmr::string
and related typedefs were added.

	* include/std/string (__hash_string_base): New class template defining
	operator() for hashing strings.
	(hash<pmr::string>, hash<pmr::u8string>, hash<pmr::u16string>)
	(hash<pmr::u32string>, hash<pmr::wstring>): Define for C++17.
	* testsuite/21_strings/basic_string/hash/hash.cc: New test.
	* testsuite/21_strings/basic_string/hash/hash_char8_t.cc: New test.

Added:
    trunk/libstdc++-v3/testsuite/21_strings/basic_string/hash/
    trunk/libstdc++-v3/testsuite/21_strings/basic_string/hash/hash.cc
    trunk/libstdc++-v3/testsuite/21_strings/basic_string/hash/hash_char8_t.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/string



More information about the Libstdc++-cvs mailing list