function::assign

이 함수 개체는 호출 가능한 개체를 할당합니다.

template<class Fx, class Alloc>
    void assign(
        Fx _Func, 
        const Alloc& _Ax
);
template<class Fx, class Alloc>
    void assign(
        reference_wrapper<Fx> _Fnref, 
        const Alloc& _Ax
);

매개 변수

  • _Func
    호출할 개체입니다.

  • _Fnref
    참조 래퍼 호출 가능 개체를 포함 합니다.

  • _Ax
    할당자 개체입니다.

설명

각 대체 멤버 함수는 callable object 보유 *this 로 전달 된 호출 가능 개체는 operand.두 저장소 할당자 객체를 할당 _Ax.

요구 사항

헤더: <functional>

네임 스페이스: std

참고 항목

참조

function Class

mem_fn Function

Lvalue가 고 Rvalue

reference_wrapper Class