This utility struct provides a namespace for functions on iterators and iterator ranges.

Synopsis

Declared in <bslstl_iteratorutil.h>

struct IteratorUtil;

Type Aliases

Name

Description

IterKey_t

Return the key‐type of the specified iterator type, which is expected to refer to a pair<KEY_TYPE, MAPPED_TYPE>.

IterMapped_t

Return the mapped‐type of the specified iterator type, which is expected to refer to a pair<KEY_TYPE, MAPPED_TYPE>.

IterToAlloc_t

Return the type that is actually stored in a map. The supplied iterator type is expected to refer to a pair<KEY_TYPE, MAPPED_TYPE>.

IterVal_t

Return the value_type of the specified iterator type.

Static Member Functions

Name

Description

canCalculateInsertDistance

Return true if the calculation of insertDistance is supported for iterators of the specified types, false otherwise.

insertDistance

Return the number of elements to account for when range‐inserting.

Created with MrDocs