---
name: "__gnu_pbds::detail::binary_heap_const_iterator_"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_pbds::detail::binary_heap_const_iterator_/3cxx"
---

# \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_(3cxx)

Const point-type iterator.

## NAME

\_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \> - Const point-type iterator.

## SYNOPSIS

`#include <const_iterator.hpp>`

Inherits **\_\_gnu\_pbds::detail::binary\_heap\_point\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>**.

### Public Types

typedef **base\_type::const\_pointer** **const\_pointer**\
 Iterator's const pointer type.  typedef **base\_type::const\_reference** **const\_reference**\
 Iterator's const reference type.  typedef \_Alloc::difference\_type **difference\_type**\
 Difference type.  typedef **std::forward\_iterator\_tag** **iterator\_category**\
 Category.  typedef **base\_type::pointer** **pointer**\
 Iterator's pointer type.  typedef **base\_type::reference** **reference**\
 Iterator's reference type.  typedef **base\_type::value\_type** **value\_type**\
 Iterator's value type.

### Public Member Functions

**binary\_heap\_const\_iterator\_** ()\
 Default constructor.  **binary\_heap\_const\_iterator\_** (const **binary\_heap\_const\_iterator\_** &other)\
 Copy constructor.  **binary\_heap\_const\_iterator\_** (entry\_pointer p\_e)\
 bool **operator!=** (const **binary\_heap\_const\_iterator\_** &other) const\
 Compares content (negatively) to a different iterator object.  bool **operator!=** (const **binary\_heap\_point\_const\_iterator\_** &other) const\
 Compares content (negatively) to a different iterator object.  **const\_reference** **operator\*** () const\
 Access.  **binary\_heap\_const\_iterator\_** & **operator++** ()\
 **binary\_heap\_const\_iterator\_** **operator++** (int)\
 **const\_pointer** **operator-\>** () const\
 Access.  bool **operator==** (const **binary\_heap\_const\_iterator\_** &other) const\
 Compares content to a different iterator object.  bool **operator==** (const **binary\_heap\_point\_const\_iterator\_** &other) const\
 Compares content to a different iterator object.

### Public Attributes

entry\_pointer **m\_p\_e**\

## Detailed Description

### template\<typename Value\_Type, typename Entry, bool Simple, typename \_Alloc\>

class \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>"Const point-type iterator.

## Member Typedef Documentation

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> typedef base\_type::const\_pointer \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::const\_pointer

Iterator's const pointer type.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> typedef base\_type::const\_reference \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::const\_reference

Iterator's const reference type.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> typedef \_Alloc::difference\_type \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::difference\_type

Difference type.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> typedef std::forward\_iterator\_tag \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::iterator\_category

Category.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> typedef base\_type::pointer \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::pointer

Iterator's pointer type.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> typedef base\_type::reference \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::reference

Iterator's reference type.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> typedef base\_type::value\_type \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::value\_type

Iterator's value type.

## Constructor & Destructor Documentation

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::binary\_heap\_const\_iterator\_ ()` [inline]`

Default constructor.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::binary\_heap\_const\_iterator\_ (const binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \> & other)` [inline]`

Copy constructor.

## Member Function Documentation

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> bool \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::operator!= (const binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \> & other) const` [inline]`

Compares content (negatively) to a different iterator object.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> bool \_\_gnu\_pbds::detail::binary\_heap\_point\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::operator!= (const binary\_heap\_point\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \> & other) const` [inline]`, ` [inherited]`

Compares content (negatively) to a different iterator object.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> const\_reference \_\_gnu\_pbds::detail::binary\_heap\_point\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::operator\* () const` [inline]`, ` [inherited]`

Access.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> const\_pointer \_\_gnu\_pbds::detail::binary\_heap\_point\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::operator-\> () const` [inline]`, ` [inherited]`

Access.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> bool \_\_gnu\_pbds::detail::binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::operator== (const binary\_heap\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \> & other) const` [inline]`

Compares content to a different iterator object.

### template\<typename Value\_Type , typename Entry , bool Simple, typename \_Alloc \> bool \_\_gnu\_pbds::detail::binary\_heap\_point\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \>::operator== (const binary\_heap\_point\_const\_iterator\_\< Value\_Type, Entry, Simple, \_Alloc \> & other) const` [inline]`, ` [inherited]`

Compares content to a different iterator object.

## Author

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