---
name: "__gnu_cxx::_Rope_const_iterator"
section: "3"
platform: "linux"
package: "libstdc++6-4.1-doc"
version: "4.1.1-21"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_cxx::_Rope_const_iterator"
---

# \_\_gnu\_cxx::\_Rope\_const\_iterator(3)

## NAME

\_\_gnu\_cxx::\_Rope\_const\_iterator -

## SYNOPSIS

Inherits **\_Rope\_iterator\_base\< \_CharT, \_Alloc \>**.

## Detailed Description

### template\<class \_CharT, class \_Alloc\> class \_\_gnu\_cxx::\_Rope\_const\_iterator\< \_CharT, \_Alloc \>

Definition at line 1106 of file rope.

### Public Types

typedef \_Alloc **\_allocator\_type**\
 typedef \_Distance **difference\_type**\
 typedef \_Category **iterator\_category**\
 typedef const \_CharT \* **pointer**\
 typedef \_CharT **reference**\
 typedef \_Tp **value\_type**\

### Public Member Functions

**\_Rope\_const\_iterator** (const **rope**\< \_CharT, \_Alloc \> &\_\_r, size\_t \_\_pos)\
 **\_Rope\_const\_iterator** (const **\_Rope\_iterator**\< \_CharT, \_Alloc \> &\_\_x)\
 **\_Rope\_const\_iterator** (const **\_Rope\_const\_iterator** &\_\_x)\
 **\_Rope\_const\_iterator** ()\
 size\_t **index** () const\
 **reference** **operator \*** ()\
 **\_Rope\_const\_iterator** **operator++** (int)\
 **\_Rope\_const\_iterator** & **operator++** ()\
 **\_Rope\_const\_iterator** & **operator+=** (ptrdiff\_t \_\_n)\
 **\_Rope\_const\_iterator** **operator--** (int)\
 **\_Rope\_const\_iterator** & **operator--** ()\
 **\_Rope\_const\_iterator** & **operator-=** (ptrdiff\_t \_\_n)\
 **\_Rope\_const\_iterator** & **operator=** (const **\_Rope\_const\_iterator** &\_\_x)\
 **reference** **operator\[\]** (size\_t \_\_n)\

### Protected Types

enum { **\_S\_path\_cache\_len** }\
 enum { **\_S\_iterator\_buf\_len** }\
 typedef **\_Rope\_RopeRep**\< \_CharT, \_Alloc \> **\_RopeRep**\

### Protected Member Functions

void **\_M\_decr** (size\_t \_\_n)\
 void **\_M\_incr** (size\_t \_\_n)\
 **\_Rope\_const\_iterator** (const **\_RopeRep** \*\_\_root, size\_t \_\_pos)\

### Static Protected Member Functions

static void **\_S\_setbuf** (**\_Rope\_iterator\_base** &\_\_x)\
 static void **\_S\_setcache** (**\_Rope\_iterator\_base** &\_\_x)\
 static void **\_S\_setcache\_for\_incr** (**\_Rope\_iterator\_base** &\_\_x)\

### Protected Attributes

\_\_GC\_CONST \_CharT \* **\_M\_buf\_end**\
 \_\_GC\_CONST \_CharT \* **\_M\_buf\_ptr**\
 \_\_GC\_CONST \_CharT \* **\_M\_buf\_start**\
 size\_t **\_M\_current\_pos**\
 int **\_M\_leaf\_index**\
 size\_t **\_M\_leaf\_pos**\
 unsigned char **\_M\_path\_directions**\
 const **\_RopeRep** \* **\_M\_path\_end** \[\_S\_path\_cache\_len\]\
 **\_RopeRep** \* **\_M\_root**\
 \_CharT **\_M\_tmp\_buf** \[\_S\_iterator\_buf\_len\]\

### Friends

template\<class \_CharT2, class \_Alloc2\> **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> **operator+** (ptrdiff\_t \_\_n, const **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> &\_\_x)\
 template\<class \_CharT2, class \_Alloc2\> **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> **operator+** (const **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> &\_\_x, ptrdiff\_t \_\_n)\
 template\<class \_CharT2, class \_Alloc2\> ptrdiff\_t **operator-** (const **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> &\_\_x, const **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> &\_\_y)\
 template\<class \_CharT2, class \_Alloc2\> **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> **operator-** (const **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> &\_\_x, ptrdiff\_t \_\_n)\
 template\<class \_CharT2, class \_Alloc2\> bool **operator\<** (const **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> &\_\_x, const **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> &\_\_y)\
 template\<class \_CharT2, class \_Alloc2\> bool **operator==** (const **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> &\_\_x, const **\_Rope\_const\_iterator**\< \_CharT2, \_Alloc2 \> &\_\_y)\
 class **rope\< \_CharT, \_Alloc \>**\

## Member Typedef Documentation

### typedef \_Distance difference\_type` [inherited]`

Distance between iterators is represented as this type.

Reimplemented in **reverse\_iterator**.

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

### typedef \_Category iterator\_category` [inherited]`

One of the **tag types**.

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

### typedef const \_CharT\* pointer

This type represents a pointer-to-value\_type.

Reimplemented from **iterator**.

Definition at line 1122 of file rope.

### typedef \_CharT reference

This type represents a reference-to-value\_type.

Reimplemented from **iterator**.

Definition at line 1119 of file rope.

### typedef \_Tp value\_type` [inherited]`

The type 'pointed to' by the iterator.

Reimplemented in **sequence\_buffer**.

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

## Author

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