Search for Target and return its Eytzinger index if present.
Synopsis
Declared in <llvm/ADT/Eytzinger.h>
template<typename KeyT = T>
[[nodiscard]]
std::optional<size_t>
findIndex(KeyT const& Target) const;
Return Value
The 0‐based Eytzinger index if found, otherwise std::nullopt.
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
Target |
Key to look up; may be a heterogeneous key type. |
Created with MrDocs