summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-12-20 15:43:47 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2025-12-20 15:43:47 +0100
commitf6bcdf67b1b981592825d6a6a1c4d3ff122de553 (patch)
tree174c30fb550768ec017b209b5215c66828358279 /src/util.h
parent7b6b7df83870c81a3f45107701ddbe52b83f91ab (diff)
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 38d89f2..3e689eb 100644
--- a/src/util.h
+++ b/src/util.h
@@ -39,3 +39,7 @@ std::vector<std::string> argsplit(const std::string& str);
//! Calls the system getenv and sets the string if the env name it exists.
//! \returns true if the env name existed, false otherwise.
bool get_env(std::string_view name, std::string& value);
+
+// helper type for the visitor
+template<class... Ts>
+struct overloaded : Ts... { using Ts::operator()...; };