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

Method hash

docopt_private.h:271–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269 int argCount() const { return fArgcount; }
270
271 virtual size_t hash() const override {
272 size_t seed = LeafPattern::hash();
273 hash_combine(seed, fShortOption);
274 hash_combine(seed, fLongOption);
275 hash_combine(seed, fArgcount);
276 return seed;
277 }
278
279 protected:
280 virtual std::pair<size_t, std::shared_ptr<LeafPattern>> single_match(PatternList const& left) const override;

Callers 3

operator()Method · 0.45
operator()Method · 0.45
hashMethod · 0.45

Calls 1

hash_combineFunction · 0.85

Tested by

no test coverage detected