codex
Loading...
Searching...
No Matches
utils.hpp
Go to the documentation of this file.
1#ifndef CODEX_REFLECTION_UTILS_HPP
2#define CODEX_REFLECTION_UTILS_HPP
3
4#include <cstddef>
5#include <type_traits>
6#include <utility>
7
8#define CODEX_FWD(x) std::forward<decltype(x)>(x)
9
10namespace codex::refl {
11
13template<std::size_t I>
14using index_constant = std::integral_constant<std::size_t, I>;
15
16}
17
18#endif
Definition fields.hpp:8
std::integral_constant< std::size_t, I > index_constant
Alias for an integral_constant of size_t.
Definition utils.hpp:14