libstdc++: Move std::hash<std::thread::id> to <bits/std_thread.h>
authorJonathan Wakely <jwakely@redhat.com>
Thu, 17 Dec 2020 11:59:07 +0000 (11:59 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 17 Dec 2020 14:03:00 +0000 (14:03 +0000)
commit8cdca5f9c706af118390489efc94336f6214f515
treef1c39c2a1e3ff6dffcb2054b7f83ba6cc2eddec4
parentf5feee6adc8350a292c235eb21e31a5082350d94
libstdc++: Move std::hash<std::thread::id> to <bits/std_thread.h>

This makes the hash function available without including the whole of
<thread>, which is needed for <barrier>.

libstdc++-v3/ChangeLog:

* include/bits/std_thread.h (hash<thread::id>): Move here,
from ...
* include/std/thread (hash<thread::id>): ... here.
libstdc++-v3/include/bits/std_thread.h
libstdc++-v3/include/std/thread