Return the entry with the specified key, or Default. This variant is useful when lookup cannot be used with non‐default‐constructible values.
Synopsis
Declared in <llvm/ADT/DenseMap.h>
template<typename U = std::remove_cv_t<ValueT>>
[[nodiscard]]
ValueT
lookup_or(
const_arg_type_t<KeyT> Val,
U&& Default) const;
Return Value
|
Note
|
The return value should not be discarded. |
Created with MrDocs