summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-12-24 15:08:48 +0100
committervaxerski <vaxry@vaxry.net>2023-12-24 15:08:48 +0100
commit5aab4a96e3c01cce181b42d51140f7ed4e555d8b (patch)
treef1ceccea228f493c0afd0e07239b277fb1e54206 /src/helpers
parentff75f991a50d9e82bb4ee4cacace551225ef2038 (diff)
dispatchers: add tiled/floating to cyclenext
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/VarList.hpp9
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