| 839 | } |
| 840 | |
| 841 | void |
| 842 | any_map::clear() |
| 843 | { |
| 844 | switch (type) |
| 845 | { |
| 846 | case map_type::ORDERED_MAP: |
| 847 | return o_m().clear(); |
| 848 | case map_type::UNORDERED_MAP: |
| 849 | return uo_m().clear(); |
| 850 | case map_type::UNORDERED_MAP_CASEINSENSITIVE_KEYS: |
| 851 | return uoci_m().clear(); |
| 852 | default: |
| 853 | throw std::logic_error("invalid map type"); |
| 854 | } |
| 855 | } |
| 856 | |
| 857 | any_map::mapped_type& |
| 858 | any_map::at(key_type const& key) |