---
name: "std::__iterator_traits"
section: "3cxx"
platform: "linux"
package: "libstdc++-9-doc"
version: "9.3.0-22"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/std::__iterator_traits"
---

# std::\_\_iterator\_traits(3cxx)

Traits class for iterators.

## NAME

std::\_\_iterator\_traits\< \_Iterator, typename \> - Traits class for iterators.

## SYNOPSIS

Inherited by std::iterator\_traits\< \_Tp \>, and std::iterator\_traits\< \_Iterator \>.

## Detailed Description

### template\<typename \_Iterator, typename = \_\_void\_t\<\>\>

struct std::\_\_iterator\_traits\< \_Iterator, typename \>" Traits class for iterators.

This class does nothing but define nested typedefs. The general version simply *forwards* the nested typedefs from the Iterator argument. Specialized versions for pointers and pointers-to-const provide tighter, more correct semantics.

Definition at line 144 of file stl\_iterator\_base\_types.h.

## Author

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