diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-02-28 12:30:11 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-02-28 12:30:11 +0000 |
| commit | c342bde9627b434effbc0cd10b817670d1da0923 (patch) | |
| tree | 60d14bf448066b8dcd639adfa0db716d5a8258c8 /src/OptionParser.h | |
| parent | 135f0a2a8c4ee04a5e96d84ba558245fabfc1f5c (diff) | |
2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use vector instead of deque for containers which is used for
mostly read-only purpose.
Diffstat (limited to 'src/OptionParser.h')
| -rw-r--r-- | src/OptionParser.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/OptionParser.h b/src/OptionParser.h index f9ec3ddc..8294d3ed 100644 --- a/src/OptionParser.h +++ b/src/OptionParser.h @@ -38,7 +38,6 @@ #include "common.h" #include <string> -#include <deque> #include <vector> #include <iosfwd> @@ -69,7 +68,7 @@ public: // Parses options in argv and writes option name and value to out in // NAME=VALUE format. Non-option strings are stored in nonopts. // Throws Exception when an unrecognized option is found. - void parseArg(std::ostream& out, std::deque<std::string>& nonopts, + void parseArg(std::ostream& out, std::vector<std::string>& nonopts, int argc, char* const argv[]); void parse(Option& option, std::istream& ios); |
