This struct provides a namespace for utility functions that provide non‐primitive operations on bdlc::PackedIntArray.

Synopsis

Declared in <bdlc_packedintarrayutil.h>

struct PackedIntArrayUtil;

Static Member Functions

Name

Description

isSorted

Return true if the range from the specified first (inclusive) to the specified last (exclusive) is sorted or empty, and false otherwise. The behavior is undefined unless first <= last.

lowerBound

Return an iterator to the first element in the sorted range from the specified first (inclusive) to the specified last (exclusive) that compares greater than or equal to the specified value, and last if no such element exists. The behavior is undefined unless first <= last and the range is sorted.

upperBound

Return an iterator to the first element in the sorted range from the specified first (inclusive) to the specified last (exclusive) that compares greater than the specified value, and last if no such element exists. The behavior is undefined unless first <= last and the range is sorted.

Created with MrDocs