| 1169 | ~arg_map() { delete[] map_; } |
| 1170 | |
| 1171 | basic_format_arg<Context> find(basic_string_view<char_type> name) const { |
| 1172 | // The list is unsorted, so just return the first matching name. |
| 1173 | for (entry *it = map_, *end = map_ + size_; it != end; ++it) { |
| 1174 | if (it->name == name) return it->arg; |
| 1175 | } |
| 1176 | return {}; |
| 1177 | } |
| 1178 | }; |
| 1179 | |
| 1180 | // A type-erased reference to an std::locale to avoid heavy <locale> include. |
no outgoing calls
no test coverage detected