__gnu_parallel::_Plus(3cxx)

__gnu_parallel::_Plus3cxx

Similar to std::plus, but allows two different types.

Usage

#include <base.h>

Inherits std::binary_function< _Arg1, _Arg2, _Result >.

Public Types

typedef _Arg1 first_argument_type
first_argument_type is the type of the first argument typedef _Result result_type
result_type is the return type typedef _Arg2 second_argument_type
second_argument_type is the type of the second argument

Public Member Functions

_Result operator() (const _Tp1 &__x, const _Tp2 &__y) const

Detailed Description

template<typename _Tp1, typename _Tp2, typename _Result = __typeof__(*static_cast<_Tp1*>(0) + *static_cast<_Tp2*>(0))>

struct __gnu_parallel::_Plus< _Tp1, _Tp2, _Result >"Similar to std::plus, but allows two different types.

Member Typedef Documentation

template<typename _Arg1 , typename _Arg2 , typename _Result > typedef _Arg1 std::binary_function< _Arg1, _Arg2, _Result >::first_argument_type [inherited]

first_argument_type is the type of the first argument

template<typename _Arg1 , typename _Arg2 , typename _Result > typedef _Result std::binary_function< _Arg1, _Arg2, _Result >::result_type [inherited]

result_type is the return type

template<typename _Arg1 , typename _Arg2 , typename _Result > typedef _Arg2 std::binary_function< _Arg1, _Arg2, _Result >::second_argument_type [inherited]

second_argument_type is the type of the second argument

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Author

Generated automatically by Doxygen for libstdc++ from the source code.

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.