std:: pointer_to_unary_function
From cppreference.net
<
cpp
|
utility
|
functional
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function objects
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Old binders and adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
template
<
class
Arg,
|
(C++11에서 사용 중단됨)
(C++17에서 제거됨) |
|
std::pointer_to_unary_function
는 단항 함수를 감싸는 역할을 하는 함수 객체입니다.
목차 |
멤버 함수
|
(생성자)
|
제공된 함수로 새로운
pointer_to_unary_function
객체를 생성합니다
(public 멤버 함수) |
|
operator()
|
저장된 함수를 호출합니다
(public 멤버 함수) |
std::pointer_to_unary_function:: pointer_to_unary_function
|
explicit
pointer_to_unary_function
(
Result
(
*
f
)
(
Arg
)
)
;
|
||
pointer_to_unary_function
함수 객체를 저장된 함수
f
로 생성합니다.
매개변수
| f | - | 저장할 함수에 대한 포인터 |
std::pointer_to_unary_function:: operator()
|
Result operator
(
)
(
Arg x
)
const
;
|
||
저장된 함수를 호출합니다.
매개변수
| x | - | 함수에 전달할 인수 |
반환 값
호출된 함수가 반환하는 값.
참고 항목
|
(deprecated in C++11)
(removed in C++17)
|
어댑터 호환 이항 함수 포인터 래퍼
(클래스 템플릿) |
|
(deprecated in C++11)
(removed in C++17)
|
함수 포인터로부터 어댑터 호환 함수 객체 래퍼 생성
(함수 템플릿) |