Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SimpleKeyValuePair< Key, std::nullptr_t > Class Template Reference

Specialisation of SimpleKeyValuePair to not waste memory for nullptr_t values. More...

#include "simpleHashMap.h"

Public Member Functions

 SimpleKeyValuePair (const Key &key, std::nullptr_t data)
 

Static Public Member Functions

static constexpr std::nullptr_t get_data ()
 
static constexpr std::nullptr_t modify_data ()
 
static void set_data (std::nullptr_t)
 

Public Attributes

Key _key
 

Detailed Description

template<class Key>
class SimpleKeyValuePair< Key, std::nullptr_t >

Specialisation of SimpleKeyValuePair to not waste memory for nullptr_t values.

This allows effectively using SimpleHashMap as a set.

Definition at line 55 of file simpleHashMap.h.

Constructor & Destructor Documentation

◆ SimpleKeyValuePair()

template<class Key >
SimpleKeyValuePair< Key, std::nullptr_t >::SimpleKeyValuePair ( const Key & key,
std::nullptr_t data )
inline

Definition at line 57 of file simpleHashMap.h.

Member Function Documentation

◆ get_data()

template<class Key >
static constexpr std::nullptr_t SimpleKeyValuePair< Key, std::nullptr_t >::get_data ( )
inlinestaticconstexpr

Definition at line 62 of file simpleHashMap.h.

◆ modify_data()

template<class Key >
static constexpr std::nullptr_t SimpleKeyValuePair< Key, std::nullptr_t >::modify_data ( )
inlinestaticconstexpr

Definition at line 63 of file simpleHashMap.h.

◆ set_data()

template<class Key >
static void SimpleKeyValuePair< Key, std::nullptr_t >::set_data ( std::nullptr_t )
inlinestatic

Definition at line 64 of file simpleHashMap.h.

Member Data Documentation

◆ _key

template<class Key >
Key SimpleKeyValuePair< Key, std::nullptr_t >::_key

Definition at line 60 of file simpleHashMap.h.


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