| 132 | inline bool EdgeSet::empty() const { return size() == 0; } |
| 133 | |
| 134 | inline EdgeSet::size_type EdgeSet::size() const { |
| 135 | auto s = get_set(); |
| 136 | if (s) { |
| 137 | return s->size(); |
| 138 | } else { |
| 139 | size_t result = 0; |
| 140 | for (int i = 0; i < kInline; i++) { |
| 141 | if (ptrs_[i]) result++; |
| 142 | } |
| 143 | return result; |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | inline void EdgeSet::clear() { |
| 148 | RegisterMutation(); |
no outgoing calls