#include <algorithm>
#include <cctype>
#include <string>
Go to the source code of this file.
|
template<typename Enum > |
constexpr std::underlying_type_t< Enum > | utils::to_underlying (Enum e) noexcept |
|
template<typename Container , typename Value > |
bool | utils::contains (const Container &container, const Value &value) |
| Returns true iff value is found in container. More...
|
|
std::string | utils::get_unknown_exception_type () |
| Utility function for finding the type of thing caught with catch(...) . More...
|
|
template<typename Container , typename Predicate > |
void | utils::erase_if (Container &container, const Predicate &predicate) |
| Convenience wrapper for using std::remove_if on a container. More...
|
|
template<typename Container , typename Value > |
std::size_t | utils::erase (Container &container, const Value &value) |
| Convenience wrapper for using std::remove on a container. More...
|
|
template<typename Container , typename Predicate > |
void | utils::sort_if (Container &container, const Predicate &predicate) |
| Convenience wrapper for using std::sort on a container. More...
|
|
template<typename Container , typename Value > |
auto * | utils::find (Container &container, const Value &value) |
| Convenience wrapper for using find on a container without needing to comare to end() 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 through std::decay first. More...
|
|
template<typename > |
constexpr bool | utils::dependent_false_v = false |
| Workaround for the fact that static_assert(false) is invalid. More...
|
|