| 623 | |
| 624 | template<typename T> |
| 625 | int Array<T>::getIndexAndCheck(const std::vector<int>& indexes) const |
| 626 | { |
| 627 | try |
| 628 | { |
| 629 | if (indexes.size() != mSize.size()) |
| 630 | error("Requested indexes size is different than Array size.", __LINE__, __FUNCTION__, __FILE__); |
| 631 | return getIndex(indexes); |
| 632 | } |
| 633 | catch (const std::exception& e) |
| 634 | { |
| 635 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 636 | return 0; |
| 637 | } |
| 638 | } |
| 639 | |
| 640 | template<typename T> |
| 641 | T& Array<T>::commonAt(const int index) const |