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

Class template for optional values.

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