Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::ArenaMapKey< T > Struct Template Reference

A sparse vector keeping objects at a stable memory location. More...

#include <ArenaMapKey.h>

Public Member Functions

bool isValid () const
 
template<typename U >
ArenaMapKey< U > cast_to ()
 
template<typename U >
bool operator== (ArenaMapKey< U > other) const
 

Static Public Attributes

static constexpr uint32_t MaxGenerations = (uint32_t(1) << 31) - 1
 
static constexpr uint32_t MaxIndex = 0xffffffff
 

Friends

struct ArenaMap< T >
 

Detailed Description

template<typename T>
struct SC::ArenaMapKey< T >

A sparse vector keeping objects at a stable memory location.

All operations return an SC::ArenaMapKey that can be used to recover values in constant time.

Template Parameters
TType of items kept in this Arena

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