---
name: "std::type_order"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::type_order"
---

# std::type\_order(3)

Total ordering of types.

## NAME

std::type\_order\< \_Tp, \_Up \> - Total ordering of types.

## SYNOPSIS

\#include \<compare\>

### Public Types

using **value\_type**\

### Public Member Functions

constexpr **operator value\_type** () const noexcept\
 constexpr value\_type **operator()** () const noexcept\

### Static Public Attributes

static constexpr strong\_ordering **value**\

## Detailed Description

### template\<typename \_Tp, typename \_Up\>

struct std::type\_order\< \_Tp, \_Up \>"Total ordering of types.

**Since**

C++26

## Author

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