aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
authorTaylor C. Richberger <Taywee@gmx.com>2016-05-05 13:36:21 -0600
committerTaylor C. Richberger <Taywee@gmx.com>2016-05-05 13:36:21 -0600
commit62b26af64982ed5016f3b5b1890879e96e9f2356 (patch)
treeb8dcf1f629c1cc85cdfd4dc0e49db3d6ad884f0e /args.hxx
parentfix readme example (diff)
downloadargs.hxx-62b26af64982ed5016f3b5b1890879e96e9f2356.tar.xz
replace matcher container with unordered_set to improve speed
Diffstat (limited to 'args.hxx')
-rw-r--r--args.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/args.hxx b/args.hxx
index 59145ef..536b305 100644
--- a/args.hxx
+++ b/args.hxx
@@ -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