nxt.container.common

Helpers used by containers.

Members

Enums

BorrowCheckFlag
enum BorrowCheckFlag

Flag for use of dynamic version of Rust-style ownership-and borrowing.

GrowOnlyFlag
enum GrowOnlyFlag

Flag that a container is grow-only, that doesn’t support any removals of elements.

GrowthStrategy
enum GrowthStrategy

Growth strategy.

Functions

popFirstMaybe
bool popFirstMaybe(C haystack, E needle)

Try to pop first occurrence of needle in haystack (if any).

reserveWithGrowth
size_t reserveWithGrowth(T x, size_t extra)

Reserve room for extra more elements in x.

shiftToFrontAt
void shiftToFrontAt(T[] r, size_t index)

Remove element at index index in r.

Meta