MCPcopy Create free account
hub / github.com/catboost/catboost / TryDequeue

Method TryDequeue

library/cpp/neh/tcp.cpp:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100 template <class TPtr>
101 inline bool TryDequeue(TPtr& p) noexcept {
102 if (L.Empty()) {
103 return false;
104 }
105
106 p.Reset(L.PopFront());
107
108 return true;
109 }
110
111 inline TContExecutor* Executor() const noexcept {
112 return Ev.Executor();

Callers 2

DequeueFunction · 0.80
OnErrorMethod · 0.80

Calls 3

EmptyMethod · 0.45
ResetMethod · 0.45
PopFrontMethod · 0.45

Tested by

no test coverage detected