aboutsummaryrefslogtreecommitdiff
path: root/src/util/string.hpp
blob: a571c50d1a51ccd2d5a457941a56b8af814d91d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"