From 51acd7b987cf8e5d5e3f575bc8210b8aecef348f Mon Sep 17 00:00:00 2001 From: "Taylor C. Richberger" Date: Thu, 5 May 2016 13:37:58 -0600 Subject: replace find --- args.hxx | 4 ++-- 1 file 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 GetOptionStrings(const std::string &shortPrefix, const std::string &longPrefix) const -- cgit v1.2.1