| 754 | |
| 755 | public: |
| 756 | bool load(handle src, bool convert) { |
| 757 | if (!isinstance<sequence>(src)) { |
| 758 | return false; |
| 759 | } |
| 760 | const auto seq = reinterpret_borrow<sequence>(src); |
| 761 | if (seq.size() != size) { |
| 762 | return false; |
| 763 | } |
| 764 | return load_impl(seq, convert, indices{}); |
| 765 | } |
| 766 | |
| 767 | template <typename T> |
| 768 | static handle cast(T &&src, return_value_policy policy, handle parent) { |