mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Remove unneeded explicit Compare function from map declarations
std::less<Key> is the standard's default comparison function, we do not need to re-declare the same function. Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
This commit is contained in:
parent
e9ae471ea4
commit
f1d75bbb32
@ -1644,11 +1644,11 @@ private:
|
|||||||
bool m_is_parsed = false;
|
bool m_is_parsed = false;
|
||||||
std::list<Argument> m_positional_arguments;
|
std::list<Argument> m_positional_arguments;
|
||||||
std::list<Argument> m_optional_arguments;
|
std::list<Argument> m_optional_arguments;
|
||||||
std::map<std::string_view, argument_it, std::less<>> m_argument_map;
|
std::map<std::string_view, argument_it> m_argument_map;
|
||||||
std::string m_parser_path;
|
std::string m_parser_path;
|
||||||
std::list<std::reference_wrapper<ArgumentParser>> m_subparsers;
|
std::list<std::reference_wrapper<ArgumentParser>> m_subparsers;
|
||||||
std::map<std::string_view, argument_parser_it, std::less<>> m_subparser_map;
|
std::map<std::string_view, argument_parser_it> m_subparser_map;
|
||||||
std::map<std::string_view, bool, std::less<>> m_subparser_used;
|
std::map<std::string_view, bool> m_subparser_used;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace argparse
|
} // namespace argparse
|
||||||
|
Loading…
Reference in New Issue
Block a user