aboutsummaryrefslogtreecommitdiff
path: root/src/util/string.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/string.hpp')
-rw-r--r--src/util/string.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/util/string.hpp b/src/util/string.hpp
new file mode 100644
index 0000000..a571c50
--- /dev/null
+++ b/src/util/string.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "util/concepts.hpp"
+
+#include <concepts>
+#include <string>
+
+template <
+ typename ContainerType,
+ typename Char = char,
+ typename String = std::basic_string<Char>>
+requires Container<ContainerType> && HasPushBack<ContainerType> &&
+ std::same_as<typename ContainerType::value_type, String>
+auto split_string(const String &str, Char delimiter) noexcept -> ContainerType;
+
+#include "string_impl.hpp"