| 235 | void reserve_maybe(const dict &, void *) {} |
| 236 | |
| 237 | bool convert_elements(const dict &d, bool convert) { |
| 238 | value.clear(); |
| 239 | reserve_maybe(d, &value); |
| 240 | for (const auto &it : d) { |
| 241 | key_conv kconv; |
| 242 | value_conv vconv; |
| 243 | if (!kconv.load(it.first.ptr(), convert) || !vconv.load(it.second.ptr(), convert)) { |
| 244 | return false; |
| 245 | } |
| 246 | value.emplace(cast_op<Key &&>(std::move(kconv)), cast_op<Value &&>(std::move(vconv))); |
| 247 | } |
| 248 | return true; |
| 249 | } |
| 250 | |
| 251 | public: |
| 252 | bool load(handle src, bool convert) { |
nothing calls this directly
no test coverage detected