Check invariants of sorted set. Runtime complexity: `O(n)`
(self)
| 721 | |
| 722 | |
| 723 | def _check(self): |
| 724 | """Check invariants of sorted set. |
| 725 | |
| 726 | Runtime complexity: `O(n)` |
| 727 | |
| 728 | """ |
| 729 | _set = self._set |
| 730 | _list = self._list |
| 731 | _list._check() |
| 732 | assert len(_set) == len(_list) |
| 733 | assert all(value in _set for value in _list) |
no outgoing calls