Title
std::hash for nullptr_t
Status
resolved
Section
[unord.hash]
Submitter
Marshall Clow

Created on 2016-11-10.00:00:00 last changed 97 months ago

Messages

Date: 2016-11-28.15:37:08

Proposed resolution:

This wording is relative to N4606.

  1. Change [function.objects], header <functional> synopsis, as indicated:

    […]
    
    // Hash function specializations
    template <> struct hash<bool>;
    […]
    template <> struct hash<long double>;
    template <> struct hash<nullptr_t>;
    
    template<class T> struct hash<T*>;
    […]
    
  2. Change [unord.hash] before p2, as indicated:

    template <> struct hash<bool>;
    […]
    template <> struct hash<long double>;
    template <> struct hash<nullptr_t>;
    template<class T> struct hash<T*>;
    
Date: 2016-11-28.00:00:00

[ 2016-11-28 ]

Resolved by P0513R0

Date: 2016-11-15.00:00:00

[ 2016-11-13, Daniel provides wording ]

Date: 2016-11-10.00:00:00

In the list of types that the library provides std::hash specializations, there is an entry for hash<T*>, but none entry for hash<nullptr_t>.

History
Date User Action Args
2016-11-28 15:37:08adminsetmessages: + msg8698
2016-11-28 15:37:08adminsetstatus: new -> resolved
2016-11-13 16:16:59adminsetmessages: + msg8639
2016-11-13 16:16:59adminsetmessages: + msg8638
2016-11-10 00:00:00admincreate