| 881 | /// Return dtype associated with a C++ type. |
| 882 | template <typename T> |
| 883 | static dtype of() { |
| 884 | return detail::npy_format_descriptor<typename std::remove_cv<T>::type>::dtype(); |
| 885 | } |
| 886 | |
| 887 | /// Return the type number associated with a C++ type. |
| 888 | /// This is the constexpr equivalent of `dtype::of<T>().num()`. |