FlatMap.at

Returns pointer elements value with specified key or null if container doesn't contains key.

struct FlatMap
return scope pure nothrow @system @nogc
CopyConstness!(This, ValueType)*
at
(
K
this This
)
(
scope auto ref K key
)
out (ret) { scope const(ValueType)* tmp = null; foreach (pair; this.storage[]) { if (pair.key == key) { tmp = &pair.value; break; } } assert (ret is tmp); }

Examples

TODO

Meta