From 5aab4a96e3c01cce181b42d51140f7ed4e555d8b Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 24 Dec 2023 15:08:48 +0100 Subject: dispatchers: add tiled/floating to cyclenext --- src/helpers/VarList.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/helpers') 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 m_vArgs; }; \ No newline at end of file -- cgit v1.2.3