Namespaces
Variants

std::function_ref:: operator()

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* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
R operator ( ) ( Args... args ) const noexcept ( /*noex*/ ) ;
(C++26부터)

저장된 thunk-ptr 를 첫 번째 매개변수로 bound-entity 와 함께, 나머지 매개변수 args 를 사용하여 호출합니다. /*noex*/ 부분은 operator ( ) 의 템플릿 매개변수와 std::function_ref 의 해당 부분과 동일합니다.

다음에 해당함: return thunk-ptr ( bound-entity , std:: forward < Args > ( args ) ... ) ; .

목차

매개변수

args - 저장된 thunk-ptr 에 전달할 나머지 매개변수

반환값

thunk-ptr ( bound-entity , std:: forward < Args > ( args ) ... ) .

예외

기본 함수 호출에서 발생한 예외를 전파합니다.

예제

참고 항목

대상 호출
( std::function<R(Args...)> 의 public member function)
저장된 함수 호출
( std::reference_wrapper<T> 의 public member function)