Chemical
Dark
Light
Paper
Themes
Dark
Light
Paper
Modules
cstd
core
std
compiler
compiler_runtime
lab
transformer
atomic
async
crashsave
osrand
crypto
encoding
bcrypt
uuid
regex
datetime
path
fs
compression
archive
image
audio
font
mime
json
html_comp
html_parser
html
ide
minlsp
html_ide
css_parser
css
css_ide
js_syntax
universal_parser
js_parser
js
js_cbi_lexer
js_ide
md_parser
md
md_ide
universal
universal_ide
page
net
tls
http
server
environment
process
window
webview
docgen
test_env
test
api
vector.ch
Declarations in
vector.ch
1
declarations
std
Declarations
Public only
std
#
Public
namespace
namespace
std
vector
#
Public
struct
struct
vector<T> {
var
data_ptr : *T
var
data_size : size_t
var
data_cap : size_t }
make
#
Public
function
Constructor
func
make() :
vector
copy
make_with_capacity
#
Public
function
Constructor
func
make_with_capacity(init_cap : size_t) :
vector
copy
resize
#
Public
function
func
resize(self : &
vector
, new_size : size_t) : void
copy
reserve
#
Public
function
func
reserve(self : &
vector
, new_cap : size_t) : void
copy
ensure_capacity_for_one_more
#
Public
function
func
ensure_capacity_for_one_more(self : &
vector
) : void
copy
push
#
Public
function
func
push(self : &
vector
, value : T) : void
copy
push_back
#
Public
function
func
push_back(self : &
vector
, value : T) : void
copy
get
#
Public
function
func
get(self : &
vector
, index : size_t) : T
copy
get_ptr
#
Public
function
func
get_ptr(self : &
vector
, index : size_t) : *T
copy
get_ref
#
Public
function
func
get_ref(self : &
vector
, index : size_t) : &T
copy
set
#
Public
function
func
set(self : &
vector
, index : size_t, value : T) : void
copy
size
#
Public
function
func
size(self : &
vector
) : size_t
copy
capacity
#
Public
function
func
capacity(self : &
vector
) : size_t
copy
data
#
Public
function
func
data(self : &
vector
) : *T
copy
last_ptr
#
Public
function
func
last_ptr(self : &
vector
) : *T
copy
remove
#
Public
function
func
remove(self : &
vector
, index : size_t) : void
copy
erase
#
Public
function
func
erase(self : &
vector
, index : size_t) : void
copy
remove_last
#
Public
function
func
remove_last(self : &
vector
) : void
copy
pop_back
#
Public
function
func
pop_back(self : &
vector
) : void
copy
take_last
#
Public
function
func
take_last(self : &
vector
) : T
copy
empty
#
Public
function
func
empty(self : &
vector
) : bool
copy
clear
#
Public
function
func
clear(self : &
vector
) : void
copy
set_len
#
Public
function
func
set_len(self : &
vector
, new_size : size_t) : void
copy
TODO: make this method unsafe to use
delete
#
Public
function
func
delete(self : &
vector
) : void
copy
Show Debug Info
Generated from: /home/runner/work/chemical/chemical/chemical-tcc/libs/std/src/vector.ch
File ID: 96
↑