Lines Matching refs:Result
317 typedef typename internal::Function<F>::Result Result;
327 virtual Result Perform(const ArgumentTuple& args) = 0;
349 typename internal::Function<F>::Result operator()(Args&&... args) {
356 typedef typename internal::Function<F>::Result Result;
390 Result Perform(ArgumentTuple args) const {
414 // template <typename Result, typename ArgumentTuple>
415 // Result Perform(const ArgumentTuple& args) const {
416 // // Processes the arguments and returns a result, using
440 typedef typename internal::Function<F>::Result Result;
445 Result Perform(const ArgumentTuple& args) override {
446 return impl_.template Perform<Result>(args);
494 // Function<F>::Result when this action is cast to Action<F> rather than
510 // statement, and conversion of the result of Return to Action<T(U)> is a
536 typedef typename Function<F>::Result Result;
538 !is_reference<Result>::value,
540 static_assert(!std::is_void<Result>::value,
550 typedef typename Function<F>::Result Result;
553 // The implicit cast is necessary when Result has more than one
554 // single-argument constructor (e.g. Result is std::vector<int>) and R
557 // Result to call. ImplicitCast_ forces the compiler to convert R to
558 // Result without considering explicit constructors, thus resolving the
562 value_(ImplicitCast_<Result>(value_before_cast_)) {}
564 Result Perform(const ArgumentTuple&) override { return value_; }
567 GTEST_COMPILE_ASSERT_(!is_reference<Result>::value,
572 Result value_;
582 typedef typename Function<F>::Result Result;
588 Result Perform(const ArgumentTuple&) override {
613 template <typename Result, typename ArgumentTuple>
614 static Result Perform(const ArgumentTuple&) {
623 template <typename Result, typename ArgumentTuple>
625 CompileAssertTypesEqual<void, Result>();
642 typedef typename Function<F>::Result Result;
646 GTEST_COMPILE_ASSERT_(internal::is_reference<Result>::value,
656 typedef typename Function<F>::Result Result;
661 Result Perform(const ArgumentTuple&) override { return ref_; }
688 typedef typename Function<F>::Result Result;
693 internal::is_reference<Result>::value,
703 typedef typename Function<F>::Result Result;
708 Result Perform(const ArgumentTuple&) override { return value_; }
737 template <typename Result, typename ArgumentTuple>
756 SetErrnoAndReturnAction(int errno_value, T result)
758 result_(result) {}
759 template <typename Result, typename ArgumentTuple>
760 Result Perform(const ArgumentTuple& /* args */) const {
785 template <typename Result, typename ArgumentTuple>
787 CompileAssertTypesEqual<void, Result>();
808 template <typename Result, typename ArgumentTuple>
810 CompileAssertTypesEqual<void, Result>();
879 typedef typename internal::Function<F>::Result Result;
882 CompileAssertTypesEqual<void, Result>();
891 typedef typename internal::Function<F>::Result Result;
897 // Performs the action and ignores its result.
1131 SetErrnoAndReturn(int errval, T result) {
1133 internal::SetErrnoAndReturnAction<T>(errval, result));
1173 // result. In other words, it changes the return type of an_action to