MCPcopy Create free account
hub / github.com/apache/brpc / Remove

Method Remove

src/butil/scoped_observer.h:32–35  ·  view source on GitHub ↗

Remove the object passed to the constructor as an observer from |source|.

Source from the content-addressed store, hash-verified

30
31 // Remove the object passed to the constructor as an observer from |source|.
32 void Remove(Source* source) {
33 sources_.erase(std::find(sources_.begin(), sources_.end(), source));
34 source->RemoveObserver(observer_);
35 }
36
37 void RemoveAll() {
38 for (size_t i = 0; i < sources_.size(); ++i)

Callers

nothing calls this directly

Calls 5

RemoveObserverMethod · 0.80
findFunction · 0.50
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected