std1.0.0-beta-7 SafeC docs

std :: collections::static_vec

Struct std::StaticVec

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

generic<T> struct StaticVec {
    []T data;
    unsigned long len;
    unsigned long cap;
}

Fields

§[]T datasource

caller's storage

§unsigned long lensource
§unsigned long capsource

data.len

Methods

§static struct StaticVec<T> over([]T storage)source · definition

empty, over the storage's elements

§int push(T val)source · definition

0 if full

§?T pop()source · definition

null if empty

§?&T top() constsource · definition
§?&T get(unsigned long idx) constsource · definition

null if out of range

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