Namespaces
Variants

std:: mem_fun_ref_t, std:: mem_fun1_ref_t, std:: const_mem_fun_ref_t, std:: const_mem_fun1_ref_t

From cppreference.net
Utilities library
Function objects
Function invocation
(C++17) (C++23)
Identity function object
(C++20)
Old binders and adaptors
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
( until C++17* ) ( until C++17* )
( until C++17* ) ( until C++17* )

( until C++17* )
mem_fun_ref_t mem_fun1_ref_t const_mem_fun_ref_t const_mem_fun1_ref_t
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
헤더 파일에 정의됨 <functional>
template < class S, class T >

class mem_fun_ref_t : public unary_function < T,S > {
public :
explicit mem_fun_ref_t ( S ( T :: * p ) ( ) ) ;
S operator ( ) ( T & p ) const ;

} ;
(1) (C++11에서 사용 중단됨)
(C++17에서 제거됨)
template < class S, class T >

class const_mem_fun_ref_t : public unary_function < T,S > {
public :
explicit const_mem_fun_ref_t ( S ( T :: * p ) ( ) const ) ;
S operator ( ) ( const T & p ) const ;

} ;
(2) (C++11에서 사용 중단됨)
(C++17에서 제거됨)
template < class S, class T, class A >

class mem_fun1_ref_t : public binary_function < T,A,S > {
public :
explicit mem_fun1_ref_t ( S ( T :: * p ) ( A ) ) ;
S operator ( ) ( T & p, A x ) const ;

} ;
(3) (C++11에서 사용 중단됨)
(C++17에서 제거됨)
template < class S, class T, class A >

class const_mem_fun1_ref_t : public binary_function < T,A,S > {
public :
explicit const_mem_fun1_ref_t ( S ( T :: * p ) ( A ) const ) ;
S operator ( ) ( const T & p, A x ) const ;

} ;
(4) (C++11에서 사용 중단됨)
(C++17에서 제거됨)

멤버 함수 포인터를 감싸는 래퍼. 멤버 함수를 호출할 클래스 인스턴스는 operator() 에 대한 참조로 전달됩니다.

1) 매개변수가 없는 비상수 멤버 함수를 래핑합니다.
2) 매개변수가 없는 const 멤버 함수를 감싸는 기능입니다.
3) 단일 매개변수를 가진 비상수 멤버 함수를 래핑합니다.
4) 단일 매개변수를 가진 const 멤버 함수를 래핑합니다.

참고 항목

(deprecated in C++11) (removed in C++17)
객체 참조로 호출 가능한 멤버 함수 포인터에 대한 래퍼 생성
(function template)
(deprecated in C++11) (removed in C++17)
객체 포인터로 호출 가능한 0항 또는 1항 멤버 함수 포인터에 대한 래퍼
(class template)