---
name: "std::_List_iterator"
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::_List_iterator"
---

# std::\_List\_iterator(3)

A list::iterator.

## NAME

std::\_List\_iterator\< \_Tp \> - A list::iterator.

## SYNOPSIS

\#include \<list\>

### Public Types

typedef **\_List\_node**\< \_Tp \> **\_Node**\
 typedef ptrdiff\_t **difference\_type**\
 typedef **std::bidirectional\_iterator\_tag** **iterator\_category**\
 typedef \_Tp \* **pointer**\
 typedef \_Tp & **reference**\
 typedef \_Tp **value\_type**\

### Public Member Functions

**\_List\_iterator** (**\_\_detail::\_List\_node\_base** \*\_\_x) noexcept\
 \_List\_iterator **\_M\_const\_cast** () const noexcept\
 reference **operator\*** () const noexcept\
 \_List\_iterator & **operator++** () noexcept\
 \_List\_iterator **operator++** (int) noexcept\
 \_List\_iterator & **operator--** () noexcept\
 \_List\_iterator **operator--** (int) noexcept\
 pointer **operator-\>** () const noexcept\

### Public Attributes

**\_\_detail::\_List\_node\_base** \* **\_M\_node**\

### Friends

bool **operator==** (const \_List\_iterator &\_\_x, const \_List\_iterator &\_\_y) noexcept\

## Detailed Description

### template\<typename \_Tp\>

struct std::\_List\_iterator\< \_Tp \>"A list::iterator.

All the functions are op overloads.

## Author

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