| 188 | template <typename T, typename SFINAE> |
| 189 | struct compare_buffer_info { |
| 190 | static bool compare(const buffer_info &b) { |
| 191 | // NOLINTNEXTLINE(bugprone-sizeof-expression) Needed for `PyObject *` |
| 192 | return b.format == format_descriptor<T>::format() && b.itemsize == (ssize_t) sizeof(T); |
| 193 | } |
| 194 | }; |
| 195 | |
| 196 | template <typename T> |
nothing calls this directly
no outgoing calls
no test coverage detected