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

Method LeafPattern

docopt_private.h:100–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 : public Pattern {
99 public:
100 LeafPattern(std::string name, value v = {})
101 : fName(std::move(name)),
102 fValue(std::move(v))
103 {}
104
105 virtual std::vector<Pattern*> flat(bool (*filter)(Pattern const*)) override {
106 if (filter(this)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected