test

site.baseurl=/test

page.path=std/array.md

page.slug=

page.dir=/std/

page.url=/std/array.html

page.url=/std/array/index.html

page.url=/std/array.html

Home "", "std" > Standard library >

std#array

BLink > Standard library > std#array

std#array emulates a resizable array.

Member functions

Name Description
Special member functions  
constructor constructs a new array
Capacity  
size returns the number of elements
Element access  
at returns the specified element
back returns the last element
front returns the first element
set_at replaces the specified element
set_back replaces the last element
set_front replaces the first element
Modifiers  
insert_at inserts a new element at the specified position
push_back inserts a new element at the end
push_front inserts a new element at the beginning
remove_at removes the specified element
pop_back removes the last element
pop_front removes the first element
take_at removes and returns the specified element
take_back removes and returns the last element
take_front removes and returns the first element
Operations  
clear removes all the elements
fill assigns the specified value to all elements
resize changes the number of elements

Notes

std#array uses 1-based indexing.