4#include "Stroika/Foundation/StroikaPreComp.h"
8#include "Stroika/Foundation/Containers/Mapping.h"
26 void SimplestMappingTest_ ()
39 Assert (p.fKey == -p.fValue);
44 if (
auto v = m.
Lookup (3)) {
52void Samples::Containers::Mapping::RunDemo ()
54 SimplestMappingTest_ ();
#define AssertNotReached()
nonvirtual bool Add(ArgByValueType< key_type > key, ArgByValueType< mapped_type > newElt, AddReplaceMode addReplaceMode=AddReplaceMode::eAddReplaces)
nonvirtual optional< mapped_type > Lookup(ArgByValueType< key_type > key) const
nonvirtual mapped_type LookupValue(ArgByValueType< key_type > key, ArgByValueType< mapped_type > defaultValue=mapped_type{}) const