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

Method hash

docopt_private.h:125–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 virtual std::string const& name() const override { return fName; }
124
125 virtual size_t hash() const override {
126 size_t seed = typeid(*this).hash_code();
127 hash_combine(seed, fName);
128 hash_combine(seed, fValue);
129 return seed;
130 }
131
132 protected:
133 virtual std::pair<size_t, std::shared_ptr<LeafPattern>> single_match(PatternList const&) const = 0;

Callers

nothing calls this directly

Calls 1

hash_combineFunction · 0.85

Tested by

no test coverage detected