BloombergLP::bdlcc::StripedUnorderedMap::visitReadOnly

visitReadOnly overloads

Synopses

Declared in <bdlcc_stripedunorderedmap.h>

Call read-only visitor on every element until finished or it returns false.

int
visitReadOnly(ReadOnlyVisitorFunction const& visitor) const;
» more...

Call read-only visitor on the element having key, if present.

int
visitReadOnly(
    KEY const& key,
    ReadOnlyVisitorFunction const& visitor) const;
» more...

Return Value

  • number of elements visited, or its negation if stopped early
  • the number of elements visited, or -1 if visitor returned false

Parameters

NameDescription
visitorread-only functor invoked with each element
keykey of the element to visit