summaryrefslogtreecommitdiff
path: root/src/utils/get_first_non_empty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/get_first_non_empty.cpp')
-rw-r--r--src/utils/get_first_non_empty.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/utils/get_first_non_empty.cpp b/src/utils/get_first_non_empty.cpp
new file mode 100644
index 0000000..5b3bedb
--- /dev/null
+++ b/src/utils/get_first_non_empty.cpp
@@ -0,0 +1,11 @@
+#include <utils/get_first_non_empty.hpp>
+
+bool is_empty(const std::string& val)
+{
+ return val.empty();
+}
+
+bool is_empty(const int& val)
+{
+ return val == 0;
+}