Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
algorithm.h File Reference
#include <algorithm>
#include <cstddef>
#include <string>
#include <string_view>
Include dependency graph for algorithm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PS
 

Functions

template<typename Range , typename T = typename Range::value_type>
bool PS::contains (Range &&range, const T &value)
 Simplifed version of std::ranges::contains (C++23) as we don't support the original one yet. More...
 
template<typename Char >
void PS::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. More...