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

# std::\_\_fwdlist\_\_Iterator(3)

A forward\_list iterator when the allocator uses fancy pointers.

## NAME

std::\_\_fwdlist::\_Iterator\< \_Const, \_Ptr \> - A forward\_list iterator when the allocator uses fancy pointers.

## SYNOPSIS

\#include \<forward\_list\>

### Public Types

using **difference\_type**\
 using **iterator\_category**\
 using **pointer**\
 using **reference**\
 using **value\_type**\

### Public Member Functions

constexpr **\_Iterator** (\_Base\_ptr \_\_x) noexcept\
 **\_Iterator** (const \_Iterator &)=default\
 constexpr **\_Iterator** (const \_Iterator\< false, \_Ptr \> &\_\_i)\
 constexpr reference **operator\*** () const noexcept\
 constexpr \_Iterator & **operator++** () noexcept\
 constexpr \_Iterator **operator++** (int) noexcept\
 constexpr pointer **operator-\>** () const noexcept\
 \_Iterator & **operator=** (const \_Iterator &)=default\

### Friends

template\<typename \_Tp, typename \_Allocator\> struct **::\_Fwd\_list\_base**\
 template\<typename \_Tp, typename \_Allocator\> class **::forward\_list**\
 constexpr bool **operator==** (const \_Iterator &\_\_x, const \_Iterator &\_\_y) noexcept\
 Forward list iterator equality comparison.

## Detailed Description

### template\<bool \_Const, typename \_Ptr\>

class std::\_\_fwdlist::\_Iterator\< \_Const, \_Ptr \>"A forward\_list iterator when the allocator uses fancy pointers.

## Friends And Related Symbol Documentation

### template\<bool \_Const, typename \_Ptr\> bool operator== (const \_Iterator\< \_Const, \_Ptr \> & \_\_x, const \_Iterator\< \_Const, \_Ptr \> & \_\_y) \[friend\]

Forward list iterator equality comparison.

## Author

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