C/C++ API Reference
Loading...
Searching...
No Matches
pw::DynamicMap< Key, Value >::Node Class Reference

Overview

template<typename Key, typename Value>
class pw::DynamicMap< Key, Value >::Node

Node is the public handle for extracted elements. It inherits from IntrusiveMap::Item to be linkable in the tree.

Key modification is disallowed because the internal storage uses std::pair<const Key, Value> to match std::map's iterator layout. Mutating a const-qualified member via const_cast is undefined behavior.

Inheritance diagram for pw::DynamicMap< Key, Value >::Node:

Public Types

using key_type = Key
 
using mapped_type = Value
 

Public Member Functions

 Node (const Node &)=delete
 
Nodeoperator= (const Node &)=delete
 
template<typename K , typename... Args>
 Node (K &&key, Args &&... args)
 
const key_type & key () const
 
mapped_type & mapped ()
 
const mapped_type & mapped () const
 

Friends

class DynamicMap
 

The documentation for this class was generated from the following file: