| 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() |
no outgoing calls