OrderedIndex.bounds

Get a range of values bounded below by lower and above by upper, with inclusiveness defined by boundaries. Complexity: O(log(n))

mixin template OrderedIndex(size_t N, bool allowDuplicates, alias KeyFromValue, alias Compare, ThisContainer)
bounds
(
string boundaries = "[]"
U
)
()
if (
isImplicitlyConvertible!(U, KeyType)
)
in { static if (boundaries == "[]") assert (!_less(upper, lower), format("nonsensical bounds %s%s,%s%s", boundaries[0], lower, upper, boundaries[1])); else assert (_less(lower, upper), format("nonsensical bounds %s%s,%s%s", boundaries[0], lower, upper, boundaries[1])); }

Meta