CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
TypeList.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include <cstddef>
11
12namespace CeresEngine::MPL {
13
15 template<typename... Ts> struct TypeList {
17 static constexpr std::size_t size{sizeof...(Ts)};
18 };
19} // namespace CeresEngine::MPL
Definition All.hpp:15
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Compile-time list of types.
Definition TypeList.hpp:15
static constexpr std::size_t size
Size of the list.
Definition TypeList.hpp:17