Wraps c so missing‐key lookups return v instead of throwing.
Synopsis
Declared in <folly/Format.h>
template<
class Container,
class Value>
/* implementation-defined */
defaulted(
Container const& c,
Value const& v);
Return Value
A wrapper that yields v on out‐of‐range lookups.
Parameters
Name |
Description |
c |
The container to wrap. |
v |
The default value to return for missing keys. |
Created with MrDocs