assert this dtype is given type; throw exception on failure
| 508 | |
| 509 | //! assert this dtype is given type; throw exception on failure |
| 510 | void assert_is(const DType& rhs) const { |
| 511 | if (m_trait != rhs.m_trait) |
| 512 | on_assert_is_failed(rhs.name()); |
| 513 | } |
| 514 | |
| 515 | template <typename T> |
| 516 | inline void assert_is_ctype() const; |