SourcePro® 2022.1 |
SourcePro® API Reference Guide |
Determines the return type of T
.
More...
#include <rw/tools/traits/RWTResultOf.h>
Public Types | |
typedef unspecified_type | type |
For T
of the form F(A1, A2, ..., AN)
, sets the type
member typedef to the return type of the expression f(a1, a2, ..., aN)
, where f
is an instance of F
, and a1, a2, ..., aN
are instances of A1, A2, ..., AN
, respectively.
The return type is determined by one of the following methods (in order):
F
is a function pointer or function reference, type
is the return type of F
.F
is a member function pointer, type
is the return type of F
.decltype
keyword, type
is the result of decltype(f(a1, a2, ..., aN))
.std::result_of
type trait, type
is an alias for std::result_of<T>::type
.std::tr1::result_of
type trait, type
is an alias for std::tr1::result_of<T>::type
.F
is a class type with a member type F::result_type
, type
is an alias for F::result_type
;F
is a class type without a member type F::result_type
, or if F::result_type
is not a type:N = 0
(no arguments) type
is void
.N > 0
type
is F::template result<F(A1, A2, ..., AN)>::type
N
is allowed to be between 0 and 10, inclusive. typedef unspecified_type RWTResultOf< T >::type |
The return type of T
.
Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |