std:: pointer_to_binary_function
      From cppreference.net
     
     
      
       <
       
        cpp
       
        |
       
        utility
       
        |
       
        functional
       
      
     
     
        
         C++
        
        
         
          
           
          
          
         
        
       
       
        
         Utilities library
        
        
         
          
           
            
          
          
          
         
        
       
       | 
 | 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
        
         Function objects
        
        
         
          
           
            
          
          
          
         
        
       
       | 
 | 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Old binders and adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
           
            
             template
            
            
             <
            
             
             
              class
             
             Arg1,
              | (C++11 中弃用) (C++17 中移除) | |
       
        std::pointer_to_binary_function
       
       是一个函数对象,它充当二元函数的包装器。
      
| 目录 | 
成员函数
| 
           
            
             (constructor)
            
           
           | 使用提供的函数构造新的 
          pointer_to_binary_function
         对象(公开成员函数) | 
| 
           
            
             operator()
            
           
           | 调用存储的函数 (公开成员函数) | 
std::pointer_to_binary_function:: pointer_to_binary_function
| 
            
             
              explicit
             
             pointer_to_binary_function
             
              (
             
             Result
             
              (
             
             
              *
             
             f
             
              )
             
             
              (
             
             Arg1,Arg2
             
              )
             
             
              )
             
             
              ;
             
            
            | ||
        使用存储的函数
        
         
          f
         
        
        构造一个
        
         pointer_to_binary_function
        
        函数对象。
       
参数
| f | - | 要存储的函数指针 | 
std::pointer_to_binary_function:: operator()
| 
            
             Result operator
             
              (
             
             
              )
             
             
              (
             
             Arg1 x1, Arg2 x2
             
              )
             
             
              const
             
             
              ;
             
            
            | ||
调用存储的函数。
参数
| x1, x2 | - | 传递给函数的参数 | 
返回值
被调用函数返回的值。
参见
| 
           
            
             
              (C++11 中弃用)
             
            
            
             
              (C++17 中移除)
             
            
           
           | 用于一元函数指针的适配器兼容包装器 (类模板) | 
| 
           
            
             
              (C++11 中弃用)
             
            
            
             
              (C++17 中移除)
             
            
           
           | 从函数指针创建适配器兼容的函数对象包装器 (函数模板) |