mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-31 16:12:50 -04:00
20 lines
456 B
C++
20 lines
456 B
C++
#pragma once
|
|
|
|
namespace randomizer::utility::general
|
|
{
|
|
template<typename First, typename... T>
|
|
bool IsAnyOf(First&& first, T&&... t)
|
|
{
|
|
return ((first == t) || ...);
|
|
}
|
|
|
|
struct PointerLess {
|
|
bool operator()(const auto* lhs, const auto* rhs) const {
|
|
if (!lhs || !rhs) {
|
|
return lhs < rhs;
|
|
}
|
|
return *lhs < *rhs;
|
|
}
|
|
};
|
|
} // namespace randomizer::utility::general
|