AuROXTL/Include/auROXTL/Utility/auIsEqualOfEnum.hpp
Jamie Reece Wilson 479269d53f [+] auROXTL/Utility
[*] Split auTemplateMeta.hpp
2024-11-30 12:14:01 +00:00

22 lines
437 B
C++

/***
Copyright (C) 2024 Jamie Reece Wilson (a/k/a "Reece"). All rights reserved.
File: auIsEqualOfEnum.hpp
File: auTemplateMeta.hpp
Date: 2024-11-30
Date: 2024-05-29
Author: Reece
***/
#pragma once
template <class T>
constexpr bool AuIsEqualOfEnum(T cmp)
{
return false;
}
template <class T, T e, T... args>
constexpr bool AuIsEqualOfEnum(T cmp)
{
return e == cmp || AuIsEqualOfEnum<T, args...>(cmp);
}