diff options
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/VarList.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/helpers/VarList.hpp b/src/helpers/VarList.hpp index 8f33f166..d70f2c3f 100644 --- a/src/helpers/VarList.hpp +++ b/src/helpers/VarList.hpp @@ -50,6 +50,15 @@ class CVarList { return m_vArgs.end(); } + bool contains(const std::string& el) { + for (auto& a : m_vArgs) { + if (a == el) + return true; + } + + return false; + } + private: std::vector<std::string> m_vArgs; };
\ No newline at end of file |
