aboutsummaryrefslogtreecommitdiff
path: root/args.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'args.hxx')
-rw-r--r--args.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/args.hxx b/args.hxx
index 536b305..eabd28b 100644
--- a/args.hxx
+++ b/args.hxx
@@ -186,12 +186,12 @@ namespace args
bool Match(const char opt) const
{
- return std::find(std::begin(shortOpts), std::end(shortOpts), opt) != shortOpts.end();
+ return shortOpts.find(opt) != shortOpts.end();
}
bool Match(const std::string &opt) const
{
- return std::find(std::begin(longOpts), std::end(longOpts), opt) != longOpts.end();
+ return longOpts.find(opt) != longOpts.end();
}
std::vector<std::string> GetOptionStrings(const std::string &shortPrefix, const std::string &longPrefix) const