Complete Native H-Lib Collection PBXB64 V18
PBXB64 V18 integrates 22 core H-Lib families plus the Safe synchronized wrapper as first-class managed data types with more than 125 typed variants. The range covers Arr, Stk, Que, Lst, Str, 2D, Hsh, Tre, DTre, Tri, Heap, Deque, Set, Graph, Multiset, Union-Find, LRU Cache, Ring, SkipList, B+ Tree, Quadtree, Bloom Filter, and Safe structures. They use dot-method syntax, require no external library, and clean up automatically at scope exit.
The sections below show representative collection patterns. The data-type reference explains family names, PB value prefixes, and managed lifetime behavior.
Map - Associative Key-Value Storage
Ordered associative container. O(log n) lookup. Full CRUD operations.
MAP API: MAP SET, MAP GET, MAP REMOVE, MAP KEYS, MAP VALUES, MAP COUNT, MAP EXISTS, MAP CLEAR, MAP ITER.
Vector - Dynamic Array
Dynamic array with automatic resize. O(1) amortized append.
VECTOR API: VECTOR PUSH, VECTOR POP, VECTOR GET, VECTOR SET, VECTOR COUNT, VECTOR REMOVE, VECTOR CLEAR, VECTOR JOIN, VECTOR FIND, VECTOR SORT, VECTOR REVERSE.
Red-Black Tree - Balanced Binary Search
Self-balancing binary search tree. O(log n) insert, delete, find.
RBTREE API: RBTREE INSERT, RBTREE REMOVE, RBTREE CONTAINS, RBTREE MIN, RBTREE MAX, RBTREE COUNT, RBTREE CLEAR, RBTREE INORDER.
Linked List - LIFO / FIFO
Doubly-linked list with O(1) push/pop at both ends.
LIST API: LIST PUSH_FRONT, LIST PUSH_BACK, LIST POP_FRONT, LIST POP_BACK, LIST FRONT, LIST BACK, LIST COUNT, LIST CLEAR, LIST INSERT, LIST REMOVE.
Deque - Double-Ended Queue
Efficient double-ended queue with O(1) operations at both ends and random access.
DEQUE API: DEQUE PUSH_FRONT, DEQUE PUSH_BACK, DEQUE POP_FRONT, DEQUE POP_BACK, DEQUE FRONT, DEQUE BACK, DEQUE GET, DEQUE SET, DEQUE COUNT, DEQUE CLEAR.
Set & Hash Table
Ordered set (tree-based) and unordered hash table (O(1) average).
SET API: SET ADD, SET REMOVE, SET CONTAINS, SET COUNT, SET CLEAR, SET UNION, SET INTERSECT, SET DIFF.
HASH API: HASH PUT, HASH GET, HASH REMOVE, HASH CONTAINS, HASH COUNT, HASH CLEAR, HASH KEYS.
Try it yourself
All test files are in examples/basic/ - compile and run to verify.