34template<
typename Range,
typename T =
typename Range::value_type>
37 return std::any_of(range.begin(), range.end(), [&](
const auto& elem)
54template<
typename Char>
55void ReplaceSubrange(std::basic_string<Char>& base, std::basic_string_view<std::type_identity_t<Char>> tag,
56 std::basic_string_view<std::type_identity_t<Char>> value)
59 while ((pos = base.find(tag, pos)) != std::basic_string<Char>::npos)
61 base.replace(pos, tag.length(), value);
62 pos += value.length();
Definition: GUIManager.h:45
void ReplaceSubrange(std::basic_string< Char > &base, std::basic_string_view< std::type_identity_t< Char > > tag, std::basic_string_view< std::type_identity_t< Char > > value)
Replaces all occurrences of a substring within a string with a given value.
Definition: algorithm.h:55
bool contains(Range &&range, const T &value)
Simplifed version of std::ranges::contains (C++23) as we don't support the original one yet.
Definition: algorithm.h:35
#define T(string_literal)
Definition: secure_crt.cpp:81