Expand description
Thread-local bump allocators.
Values allocated from Temp and Local Allocators must be freed by the same thread that allocated them, or the program will abort.
#Example
use pstd::localalloc::{TBox,tbox};
let b : TBox<u32> = tbox(99);
assert!( *b == 99 );Structs§
Functions§
- dbox
- Allocate a
std::boxed::BoxorLBoxdepending on whether dynbox feature is selected. - lbox
- Allocate a
LBox. - lboxstr
- Convert
strtoLBox<str>. - lbtreemap
- Create a
LBTreeMap. - lhashmap
- Create a
LHashMap. - lstring
- Convert
strtoLString. - lvec
- Create a
LVec. - tbox
- Allocate a
TBox. - tvec
- Create a
TVec.