malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Utilities
EnumClassHash.h
Go to the documentation of this file.
1
// Copyright (c) 2025 Dave R. Smith. All rights reserved.
2
// Malena Framework — Proprietary Software. See LICENSE for terms.
3
4
//
5
// Created by Dave Smith on 10/3/25.
6
//
7
8
#ifndef MALENA_ENUMCLASSHASH_H
9
#define MALENA_ENUMCLASSHASH_H
14
15
#include <
Malena/Core/malena_export.h
>
16
17
namespace
ml
{
18
struct
EnumClassHash
{
19
template
<
typename
T>
20
std::size_t
operator()
(T t)
const
{
21
return
static_cast<
std::size_t
>
(t);
22
}
23
};}
24
#endif
//ENUMCLASSHASH_H
malena_export.h
ml
Definition
Component.h:22
ml::EnumClassHash
Definition
EnumClassHash.h:18
ml::EnumClassHash::operator()
std::size_t operator()(T t) const
Definition
EnumClassHash.h:20