19template <
typename T, encoding E>
23 for (
auto &item : list) {
47 for (
auto &item : list) {
69zstring
join(
const std::vector<std::string> &list,
const zstring &delim)
noexcept;
81template <
typename T, encoding E>
83 static_assert(std::is_pointer<T>::value,
"Array template must be of pointer type.");
87 for (
auto &item : list) {
A base interface for all objects that can be iterated over.
Definition iterable.hpp:10
A template class for character strings.
Definition string.hpp:62
int length() const noexcept override
Get the character count of the string.
Section containing core functions and classes.
string< E > joinDeref(const iterable< T > &list, const string< E > &delim) noexcept
Dereference elements in an array and concatenate them into a string, separated by a delimiter.
Definition join.hpp:82
string< E > join(const iterable< T > &list, const string< E > &delim) noexcept
Concatenate elements in an array into a string, separated by a delimiter.
Definition join.hpp:20