---
name: "std::less"
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::less/3cxx"
---

# std::less(3cxx)

One of the comparison functors.

## NAME

std::less\< \_Tp \> - One of the **comparison functors**.

## SYNOPSIS

`#include <functional>`

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

Inherited by \_\_gnu\_parallel::\_Less\< \_Tp, \_Tp \>.

### Public Types

**typedef** \_Tp **first\_argument\_type**\
 `first_argument_type` is the type of the first argument  **typedef** bool **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 bool **operator()** (const \_Tp &\_\_x, const \_Tp &\_\_y) const\

## Detailed Description

### template\<typename \_Tp\>

struct std::less\< \_Tp \>"One of the **comparison functors**.

## Member Typedef Documentation

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

`first_argument_type` is the type of the first argument

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

`result_type` is the return type

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