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