MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / operator+

Function operator+

3rdparty/cppzmq/zmq.hpp:1112–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1110};
1111
1112inline mutable_buffer operator+(const mutable_buffer &mb, size_t n) noexcept
1113{
1114 return mutable_buffer(static_cast<char *>(mb.data()) + (std::min)(n, mb.size()),
1115 mb.size() - (std::min)(n, mb.size()));
1116}
1117inline mutable_buffer operator+(size_t n, const mutable_buffer &mb) noexcept
1118{
1119 return mb + n;

Callers

nothing calls this directly

Calls 4

mutable_bufferClass · 0.85
const_bufferClass · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected