Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baidu/tera
/ Push
Method
Push
src/common/base/bounded_queue.h:21–24 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
explicit BoundedQueue(size_type limit) : limit_{limit} {}
20
21
void Push(const value_type& v) {
22
qu_.push_back(v);
23
Drop();
24
}
25
26
void Push(value_type&& v) {
27
qu_.push_back(std::move(v));
Callers
1
TEST_F
Function · 0.45
Calls
1
push_back
Method · 0.80
Tested by
1
TEST_F
Function · 0.36