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

# \_\_gnu\_pbds::detail::rb\_tree\_node\_(3cxx)

Node for Red-Black trees.

## NAME

\_\_gnu\_pbds::detail::rb\_tree\_node\_\< Value\_Type, Metadata, \_Alloc \> - Node for Red-Black trees.

## SYNOPSIS

`#include <node.hpp>`

### Public Types

typedef **rebind\_traits**\< \_Alloc, metadata\_type \>::const\_reference **metadata\_const\_reference**\
 typedef **rebind\_traits**\< \_Alloc, metadata\_type \>::reference **metadata\_reference**\
 typedef Metadata **metadata\_type**\
 typedef **rebind\_traits**\< \_Alloc, **rb\_tree\_node\_** \>::pointer **node\_pointer**\
 typedef Value\_Type **value\_type**\

### Public Member Functions

metadata\_reference **get\_metadata** ()\
 metadata\_const\_reference **get\_metadata** () const\
 bool **special** () const\

### Public Attributes

metadata\_type **m\_metadata**\
 node\_pointer **m\_p\_left**\
 node\_pointer **m\_p\_parent**\
 node\_pointer **m\_p\_right**\
 bool **m\_red**\
 value\_type **m\_value**\

## Detailed Description

### template\<typename Value\_Type, class Metadata, typename \_Alloc\>

struct \_\_gnu\_pbds::detail::rb\_tree\_node\_\< Value\_Type, Metadata, \_Alloc \>"Node for Red-Black trees.

## Author

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