std::unordered_map<Key,T,Hash,KeyEqual,Allocator>:: hash_function
      From cppreference.net
     
     
      
       <
       
        cpp
       
        |
       
        container
       
        |
       
        unordered map
       
      
     
     
        
         C++
        
        
         
          
           
          
          
         
        
       
       
        
         Containers library
        
        
         
          
           
            
          
          
          
         
        
       
       | 
                
                 
                  
                   (C++17)
                  
                 
                
                | ||||
| Sequence | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++26)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++26)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| Associative | ||||
| Unordered associative | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++11)
                  
                 
                
                | ||||
| Adaptors | ||||
| 
                
                 
                  
                   (C++23)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++23)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++23)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++23)
                  
                 
                
                | ||||
| Views | ||||
| 
                
                 
                  
                   (C++20)
                  
                 
                
                | ||||
| 
                
                 
                  
                   (C++23)
                  
                 
                
                | ||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table | 
        
         
          std::unordered_map
         
        
        
         
          
           
            
          
          
          
         
        
       
       | Member types | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Non-member functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Deduction guides (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
           
            hasher hash_function
            
             (
            
            
             )
            
            
             const
            
            
             ;
            
           
           | (自 C++11 起) | |
返回用于对键进行哈希处理的函数。
| 目录 | 
参数
(无)
返回值
哈希函数。
复杂度
常量。
参见
| 返回用于比较键是否相等的函数 (公开成员函数) |