MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / count

Method count

framework/src/util/AnyMap.cpp:825–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823 }
824
825 any_map::size_type
826 any_map::count(any_map::key_type const& key) const
827 {
828 switch (type)
829 {
830 case map_type::ORDERED_MAP:
831 return o_m().count(key);
832 case map_type::UNORDERED_MAP:
833 return uo_m().count(key);
834 case map_type::UNORDERED_MAP_CASEINSENSITIVE_KEYS:
835 return uoci_m().count(key);
836 default:
837 throw std::logic_error("invalid map type");
838 }
839 }
840
841 void
842 any_map::clear()

Calls

no outgoing calls