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;
Call read‐only visitor on the element having key, if present.
int
visitReadOnly(
KEY const& key,
ReadOnlyVisitorFunction const& visitor) const;
Return Value
-
number of elements visited, or its negation if stopped early
-
the number of elements visited, or
‐1ifvisitorreturnedfalse
Parameters
Name |
Description |
visitor |
read‐only functor invoked with each element |
key |
key of the element to visit |
Created with MrDocs