Forward iterator implementation for a flat hash table.

Synopsis

Declared in <bdlc_flathashtable.h>

template<class ENTRY>
class FlatHashTable_IteratorImp;

Description

This class implements the methods required by bsl::ForwardIterator to provide forward iterators. As such, an instance of this class represents a position within a flat hash table. This class uses no features of the ENTRY type except for addresses of ENTRY objects.

Member Functions

Name

Description

FlatHashTable_IteratorImp [constructor]

Constructors

operator=

Assign to this FlatHashTable_IteratorImp the value of the specified rhs.

operator*

Return a reference to the element referred to by this FlatHashTable_IteratorImp. The behavior is undefined unless this FlatHashTable_IteratorImp() != *this.

operator++

Advance this iterator to the next present element.

Friends

Name

Description

BloombergLP::bdlc::operator==<>

Return whether the iterators refer to the same position.

Non-Member Functions

Name

Description

operator==

Return true if the specified a and b iterators are equal.

Created with MrDocs