---
name: "__gnu_parallel::_Multiplies"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_parallel::_Multiplies/3cxx"
---

# \_\_gnu\_parallel::\_Multiplies(3cxx)

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

## NAME

\_\_gnu\_parallel::\_Multiplies\< \_Tp1, \_Tp2, \_Result \> - Similar to std::multiplies, but allows two different types.

## SYNOPSIS

`#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::\_Multiplies\< \_Tp1, \_Tp2, \_Result \>"Similar to std::multiplies, 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

## Author

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