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

# std::modulus(3cxx)

One of the math functors.

## NAME

std::modulus\< \_Tp \> - One of the **math functors**.

## SYNOPSIS

`#include <functional>`

Inherits **std::binary\_function\< \_Tp, \_Tp, \_Tp \>**.

### Public Types

**typedef** \_Tp **first\_argument\_type**\
 `first_argument_type` is the type of the first argument  **typedef** \_Tp **result\_type**\
 `result_type` is the return type  **typedef** \_Tp **second\_argument\_type**\
 `second_argument_type` is the type of the second argument

### Public Member Functions

constexpr \_Tp **operator()** (const \_Tp &\_\_x, const \_Tp &\_\_y) const\

## Detailed Description

### template\<typename \_Tp\>

struct std::modulus\< \_Tp \>"One of the **math functors**.

## Member Typedef Documentation

### typedef \_Tp std::binary\_function\< \_Tp , \_Tp , \_Tp \>::first\_argument\_type` [inherited]`

`first_argument_type` is the type of the first argument

### typedef \_Tp std::binary\_function\< \_Tp , \_Tp , \_Tp \>::result\_type` [inherited]`

`result_type` is the return type

### typedef \_Tp std::binary\_function\< \_Tp , \_Tp , \_Tp \>::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.
