---
name: "__gnu_pbds::detail::rc"
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::rc/3cxx"
---

# \_\_gnu\_pbds::detail::rc(3cxx)

Redundant binary counter.

## NAME

\_\_gnu\_pbds::detail::rc\< \_Node, \_Alloc \> - Redundant binary counter.

## SYNOPSIS

`#include <rc.hpp>`

### Public Types

typedef entry\_const\_pointer **const\_iterator**\
 typedef node\_pointer **entry**\

### Public Member Functions

**rc** (const **rc** &)\
 const const\_iterator **begin** () const\
 void **clear** ()\
 bool **empty** () const\
 const const\_iterator **end** () const\
 void **pop** ()\
 void **push** (entry)\
 size\_type **size** () const\
 void **swap** (**rc** &)\
 node\_pointer **top** () const\

## Detailed Description

### template\<typename \_Node, typename \_Alloc\>

class \_\_gnu\_pbds::detail::rc\< \_Node, \_Alloc \>"Redundant binary counter.

## Author

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