MCPcopy Create free account
hub / github.com/docopt/docopt.cpp / flat

Method flat

docopt_private.h:105–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 {}
104
105 virtual std::vector<Pattern*> flat(bool (*filter)(Pattern const*)) override {
106 if (filter(this)) {
107 return { this };
108 }
109 return {};
110 }
111
112 virtual void collect_leaves(std::vector<LeafPattern*>& lst) override final {
113 lst.push_back(this);

Callers 2

flat_filterFunction · 0.45
flatMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected