The Battle for Wesnoth  1.15.1+dev
Classes | Namespaces | Functions
general.hpp File Reference
#include "global.hpp"
#include <algorithm>
#include <cctype>
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.

Classes

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...
 

Namespaces

 utils
 
 utils::detail
 

Functions

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

Function Documentation

◆ chars_equal_insensitive()

bool chars_equal_insensitive ( char  a,
char  b 
)
inline

◆ chars_less_insensitive()

bool chars_less_insensitive ( char  a,
char  b 
)
inline

Definition at line 22 of file general.hpp.

References utils::clamp().

Referenced by gui::menu::basic_sorter::less().