BloombergLP::bslstl::operator++

Move the specified iterator to the next element and return its prior value.

Synopsis

Declared in <bslstl_hashtablebucketiterator.h>

template<
    class VALUE_TYPE,
    class DIFFERENCE_TYPE>
HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE>
operator++(
    HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE>& iterator,
    int postfix);

Description

The behavior is undefined unless iterator refers to a valid (not yet erased) element in a bucket. Note that iterator is invalidated when the underlying hash table is rehashed.

Return Value

copy of iterator prior to advancement

Parameters

NameDescription
iteratoriterator to advance
postfixunused parameter distinguishing the postfix operator