File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1787,15 +1787,15 @@ class kwargs : public dict {
1787
1787
class set_base : public object {
1788
1788
protected:
1789
1789
PYBIND11_OBJECT (set_base, object, PyAnySet_Check)
1790
-
1791
- public:
1792
- size_t size () const { return (size_t ) PySet_Size (m_ptr); }
1793
- bool empty () const { return size () == 0 ; }
1794
1790
template <typename T>
1795
1791
bool add (T &&val) /* py-non-const */ {
1796
1792
return PySet_Add (m_ptr, detail::object_or_cast (std::forward<T>(val)).ptr ()) == 0 ;
1797
1793
}
1798
1794
void clear () /* py-non-const */ { PySet_Clear (m_ptr); }
1795
+
1796
+ public:
1797
+ size_t size () const { return (size_t ) PySet_Size (m_ptr); }
1798
+ bool empty () const { return size () == 0 ; }
1799
1799
template <typename T>
1800
1800
bool contains (T &&val) const {
1801
1801
return PySet_Contains (m_ptr, detail::object_or_cast (std::forward<T>(val)).ptr ()) == 1 ;
You can’t perform that action at this time.
0 commit comments