| 2326 | bool empty() const { return size() == 0; } |
| 2327 | template <typename T> |
| 2328 | bool contains(T &&val) const { |
| 2329 | auto result = PySet_Contains(m_ptr, detail::object_or_cast(std::forward<T>(val)).ptr()); |
| 2330 | if (result == -1) { |
| 2331 | throw error_already_set(); |
| 2332 | } |
| 2333 | return result == 1; |
| 2334 | } |
| 2335 | }; |
| 2336 | |
| 2337 | class set : public anyset { |
nothing calls this directly
no test coverage detected