aboutsummaryrefslogtreecommitdiff
path: root/libcpp/files.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-04-03 10:47:47 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-04-03 10:47:47 +0100
commit0cb78ef4bcd216413199f9f27eed0ea0a56dd8da (patch)
treec4d7fd4a00fd3526c53a1055a9e91973a4a0fd1e /libcpp/files.c
parent3a3976b14e329421e51a2aa43e516a6871cb5e6b (diff)
downloadgcc-0cb78ef4bcd216413199f9f27eed0ea0a56dd8da.zip
gcc-0cb78ef4bcd216413199f9f27eed0ea0a56dd8da.tar.gz
gcc-0cb78ef4bcd216413199f9f27eed0ea0a56dd8da.tar.bz2
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. From-SVN: r270116
Diffstat (limited to 'libcpp/files.c')
0 files changed, 0 insertions, 0 deletions