Nested Types






Nested Types

typedef Ty reference_wrapper::type ;

The nested type reference_wrapper<Ty>::type is a synonym for the template argument Ty.

typedef T0 reference_wrapper::result_type;

The template specialization reference_wrapper<Ty> is derived from std::unary_function<T1, Ret>hence defining the nested type result_type as a synonym for Ret and the nested type argument_type as a synonym for T1only if the type Ty is one of the following:

  • A function type or pointer to function type taking one argument of type T1 and returning Ret

  • A pointer to member function type with cv-qualifier cv that takes no arguments; the type T1 is cv Ty*, and Ret is the return type of the pointer to member function

  • A type that is derived from std::unary_function<T1, Ret>

The template specialization reference_wrapper<Ty> is derived from std::binary_function<T1, T2, Ret>hence defining the nested type result_type as a synonym for Ret, the nested type first_argument_type as a synonym for T1, and the nested type second_argument_type as a synonym for T2only if the type Ty is one of the following:

  • A function type or pointer to function type taking two arguments of types T1 and T2 and returning Ret

  • A pointer to member function type with cv-qualifier cv that takes one argument of type T2; the type T1 is cv Ty*, and Ret is the return type of the pointer to member function

  • A type that is derived from std::binary_function<T1, T2, Ret>

If it is not derived from unary_function or binary_function, the template specialization defines the nested type result_type according to the rules for a weak result type (see Section 6.2).



 Python   SQL   Java   php   Perl 
 game development   web development   internet   *nix   graphics   hardware 
 telecommunications   C++ 
 Flash   Active Directory   Windows