|
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 T , typename Range > |
std::vector< T > | utils::from_range (Range &&range) |
| Returns a vector whose elements are initialized from the given range. More...
|
|
template<typename Container , typename Value , typename Projection = implementation::identity> |
auto | utils::ranges::find (Container &container, const Value &value, const Projection &projection={}) |
|