BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlc::PackedIntArrayUtil Struct Reference

#include <bdlc_packedintarrayutil.h>

Static Public Member Functions

template<class TYPE >
static bool isSorted (PackedIntArrayConstIterator< TYPE > first, PackedIntArrayConstIterator< TYPE > last)
 
template<class TYPE >
static PackedIntArrayConstIterator< TYPE > lowerBound (PackedIntArrayConstIterator< TYPE > first, PackedIntArrayConstIterator< TYPE > last, TYPE value)
 
template<class TYPE >
static PackedIntArrayConstIterator< TYPE > upperBound (PackedIntArrayConstIterator< TYPE > first, PackedIntArrayConstIterator< TYPE > last, TYPE value)
 

Detailed Description

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

Member Function Documentation

◆ isSorted()

template<class TYPE >
bool bdlc::PackedIntArrayUtil::isSorted ( PackedIntArrayConstIterator< TYPE >  first,
PackedIntArrayConstIterator< TYPE >  last 
)
static

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()

template<class TYPE >
PackedIntArrayConstIterator< TYPE > bdlc::PackedIntArrayUtil::lowerBound ( PackedIntArrayConstIterator< TYPE >  first,
PackedIntArrayConstIterator< TYPE >  last,
TYPE  value 
)
static

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()

template<class TYPE >
PackedIntArrayConstIterator< TYPE > bdlc::PackedIntArrayUtil::upperBound ( PackedIntArrayConstIterator< TYPE >  first,
PackedIntArrayConstIterator< TYPE >  last,
TYPE  value 
)
static

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.


The documentation for this struct was generated from the following file: