MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / extract

Method extract

common/unordered_inline_set.h:137–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 return !(*this == rhs);
136 }
137 T extract() {
138 assert(_a && _i < _a->size());
139 assert(_a->get_bit(_i));
140 auto v = _a->get(_i);
141 if (!v) return T();
142 auto r = std::move(*v);
143 _a->erase_bit(_i);
144 return r;
145 }
146 iterator get_next() const {
147 return ++iterator(*this);
148 }

Callers 3

_rehashMethod · 0.80
rehashMethod · 0.80

Calls 4

get_bitMethod · 0.80
erase_bitMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected