Return the stored index for a key, optionally inserting a default value.
Synopsis
Declared in <folly/AtomicHashMap.h>
uint32_t
keyToIdx(
KeyT const k,
bool mayInsert = false);
Return Value
The encoded 32‐bit index of the element.
Parameters
Name |
Description |
k |
The key to locate or insert. |
mayInsert |
Whether to insert the key when it is not present. |
Created with MrDocs