The Battle for Wesnoth  1.17.0-dev
Classes | Namespaces | Functions | Variables
general.hpp File Reference
#include <algorithm>
#include <cctype>
#include <functional>
Include dependency graph for general.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  utils::detail::contains_impl< Container, Value >
 A struct that exists to implement a generic wrapper for std::find. More...
struct  utils::detail::contains_impl< Container, typename Container::key_type >
 A struct that exists to implement a generic wrapper for the find() member of associative containers. More...




bool utils::chars_equal_insensitive (char a, char b)
bool utils::chars_less_insensitive (char a, char b)
template<typename Container , typename Value >
bool utils::contains (const Container &container, const Value &value)
 Returns true iff value is found in container. More...


template<typename T1 , typename T2 >
constexpr bool utils::decayed_is_same = std::is_same_v<std::decay_t<T1>, std::decay_t<T2>>
 Equivalent to as std::is_same_v except both types are passed throgh std::decay first. More...