diff options
author | Taylor C. Richberger <Taywee@gmx.com> | 2016-05-05 13:36:21 -0600 |
---|---|---|
committer | Taylor C. Richberger <Taywee@gmx.com> | 2016-05-05 13:36:21 -0600 |
commit | 62b26af64982ed5016f3b5b1890879e96e9f2356 (patch) | |
tree | b8dcf1f629c1cc85cdfd4dc0e49db3d6ad884f0e | |
parent | fix readme example (diff) | |
download | args.hxx-62b26af64982ed5016f3b5b1890879e96e9f2356.tar.xz |
replace matcher container with unordered_set to improve speed
-rw-r--r-- | args.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,7 +27,7 @@ #include <string> #include <tuple> #include <vector> -#include <cstdlib> +#include <unordered_set> namespace args { @@ -150,8 +150,8 @@ namespace args class Matcher { private: - const std::vector<char> shortOpts; - const std::vector<std::string> longOpts; + const std::unordered_set<char> shortOpts; + const std::unordered_set<std::string> longOpts; public: // Specify short and long opts separately as iterators |