MCPcopy Create free account
hub / github.com/actor-framework/actor-framework / take

Function take

libcaf_net/caf/detail/rfc6455.test.cpp:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29template <class T>
30auto take(const T& xs, size_t num_bytes) {
31 auto n = std::min(xs.size(), num_bytes);
32 return std::vector<typename T::value_type>{xs.begin(), xs.begin() + n};
33}
34
35} // namespace
36

Callers 1

rfc6455.test.cppFile · 0.70

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected