Panda3D
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.


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