| 325 | void reserve_maybe(const sequence &, void *) {} |
| 326 | |
| 327 | bool convert_elements(handle seq, bool convert) { |
| 328 | auto s = reinterpret_borrow<sequence>(seq); |
| 329 | value.clear(); |
| 330 | reserve_maybe(s, &value); |
| 331 | for (const auto &it : seq) { |
| 332 | value_conv conv; |
| 333 | if (!conv.load(it, convert)) { |
| 334 | return false; |
| 335 | } |
| 336 | value.push_back(cast_op<Value &&>(std::move(conv))); |
| 337 | } |
| 338 | return true; |
| 339 | } |
| 340 | |
| 341 | public: |
| 342 | template <typename T> |
nothing calls this directly
no test coverage detected