22 lines
437 B
C++
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);
|
|
} |