From 62b26af64982ed5016f3b5b1890879e96e9f2356 Mon Sep 17 00:00:00 2001 From: "Taylor C. Richberger" Date: Thu, 5 May 2016 13:36:21 -0600 Subject: replace matcher container with unordered_set to improve speed --- args.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'args.hxx') diff --git a/args.hxx b/args.hxx index 59145ef..536b305 100644 --- a/args.hxx +++ b/args.hxx @@ -27,7 +27,7 @@ #include #include #include -#include +#include namespace args { @@ -150,8 +150,8 @@ namespace args class Matcher { private: - const std::vector shortOpts; - const std::vector longOpts; + const std::unordered_set shortOpts; + const std::unordered_set longOpts; public: // Specify short and long opts separately as iterators -- cgit v1.2.1