| 944 | } |
| 945 | |
| 946 | any_map::const_iterator |
| 947 | any_map::find(key_type const& key) const |
| 948 | { |
| 949 | switch (type) |
| 950 | { |
| 951 | case map_type::ORDERED_MAP: |
| 952 | return { o_m().find(key) }; |
| 953 | case map_type::UNORDERED_MAP: |
| 954 | return { uo_m().find(key), const_iterator::UNORDERED }; |
| 955 | case map_type::UNORDERED_MAP_CASEINSENSITIVE_KEYS: |
| 956 | return { uoci_m().find(key), const_iterator::UNORDERED_CI }; |
| 957 | default: |
| 958 | throw std::logic_error("invalid map type"); |
| 959 | } |
| 960 | } |
| 961 | |
| 962 | any_map::ordered_any_map::const_iterator |
| 963 | any_map::beginOM_TypeChecked() const |
no outgoing calls