std1.0.0-beta-7 SafeC docs

std :: collections::static_vec

Struct std::StaticMap

#include <std/collections/static_vec.h> source

generic<V> struct StaticMap {
    []StaticMapSlot<V> slots;
    unsigned long cap;
    unsigned long count;
}

Fields

caller's storage

§unsigned long capsource

slots.len

§unsigned long countsource

Methods

§static struct StaticMap<V> over([]StaticMapSlot<V> storage)source · definition

empty, over the storage's slots

§int insert(unsigned long key, V val)source · definition

insert or update; 0 if full

§?&V get(unsigned long key) constsource · definition

null if missing

§int contains(unsigned long key) constsource · definition
§unsigned long length() constsource · definition
§int is_empty() constsource · definition
§void clear()source · definition

drop every value