make skip() function argument optional and default to 1

This commit is contained in:
Axel Kohlmeyer 2021-04-04 21:14:12 -04:00
parent d1b6aaa3f3
commit 36c6410fd8
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public:
Tokenizer& operator=(Tokenizer&&) = default;
void reset();
void skip(int n);
void skip(int n=1);
bool has_next() const;
bool contains(const std::string &str) const;
std::string next();
@ -104,7 +104,7 @@ public:
bool has_next() const;
bool contains(const std::string &value) const;
void skip(int ntokens);
void skip(int ntokens=1);
size_t count();
};