BloombergLP::bdlcc::StripedUnorderedMap::visit

visit overloads

Synopses

Declared in <bdlcc_stripedunorderedmap.h>

Call visitor on every element until finished or visitor returns false.

int
visit(VisitorFunction const& visitor);
» more...

Call visitor on the element having key, if present.

int
visit(
    KEY const& key,
    VisitorFunction const& visitor);
» more...

Return Value

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

Parameters

NameDescription
visitorfunctor invoked with each element's value address
keykey of the element to visit