MCPcopy Create free account
hub / github.com/boostorg/asio / filter

Function filter

example/cpp14/executors/pipeline.cpp:246–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void filter(queue_back<std::string> in, queue_front<std::string> out)
247{
248 std::string line;
249 while (in.pop(line))
250 if (line.length() > 5)
251 out.push(line);
252}
253
254void upper(queue_back<std::string> in, queue_front<std::string> out)
255{

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.80
popMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected