| 643 | |
| 644 | public: |
| 645 | bool load(handle src, bool convert) { |
| 646 | if (!isinstance<sequence>(src)) { |
| 647 | return false; |
| 648 | } |
| 649 | const auto seq = reinterpret_borrow<sequence>(src); |
| 650 | if (seq.size() != size) { |
| 651 | return false; |
| 652 | } |
| 653 | return load_impl(seq, convert, indices{}); |
| 654 | } |
| 655 | |
| 656 | template <typename T> |
| 657 | static handle cast(T &&src, return_value_policy policy, handle parent) { |