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

# std::\_Node\_handle(3cxx)

Node handle type for maps.

## NAME

std::\_Node\_handle\< \_Key, \_Value, \_NodeAlloc \> - Node handle type for maps.

## SYNOPSIS

`#include <set>`

Inherits **std::\_Node\_handle\_common\< \_Value, \_NodeAlloc \>**.

### Public Types

**using** **allocator\_type** = **\_\_alloc\_rebind**\< **\_NodeAlloc**, \_Value \>\
 **using** **key\_type** = **\_Key**\
 **using** **mapped\_type** = **typename** \_Value::second\_type\

### Public Member Functions

**\_Node\_handle** (**\_Node\_handle** &&) noexcept=**default**\
 bool **empty** () const noexcept\
 **allocator\_type** **get\_allocator** () const noexcept\
 **key\_type** & **key** () const noexcept\
 mapped\_type & **mapped** () const noexcept\
 **operator bool** () const noexcept\
 **\_Node\_handle** & **operator=** (**\_Node\_handle** &&) noexcept=**default**\
 **void** **swap** (**\_Node\_handle** &**\_\_nh**) noexcept\

### Friends

template\<**typename** **\_Key2** , **typename** **\_Value2** , **typename** **\_ValueAlloc** , **typename** \_ExtractKey , **typename** \_Equal , **typename** **\_Hash** , **typename** **\_RangeHash** , **typename** **\_Unused** , **typename** **\_RehashPolicy** , **typename** \_Traits \> **class** **\_Hashtable**\
 template\<**typename** **\_Key2** , **typename** **\_Value2** , **typename** **\_KeyOfValue** , **typename** \_Compare , **typename** **\_ValueAlloc** \> **class** **\_Rb\_tree**\
 **void** **swap** (**\_Node\_handle** &\_\_x, **\_Node\_handle** &\_\_y) noexcept(noexcept(\_\_x.swap(\_\_y)))\

## Detailed Description

### template\<typename \_Key, typename \_Value, typename \_NodeAlloc\>

class std::\_Node\_handle\< \_Key, \_Value, \_NodeAlloc \>"Node handle type for maps.

## Author

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