BloombergLP::bdlcc::StripedUnorderedMap::visitReadOnly

Call the specified visitor on element (if one exists) in this hash map having the specified key. That is, for (key, value), invoke: ` bool visitor(value, key); ` Return the number of elements visited or -1 if visitor returned false. visitor has read-only access to each element for duration of each invocation. The behavior is undefined if hash map manipulators are invoked from within visitor, as it may lead to a deadlock.

Synopsis

Declared in <bdlcc_stripedunorderedmap.h>

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