Saga3D API Documentation  1.0-RC4
enumType.hpp
Go to the documentation of this file.
1 #ifndef __ENUM_TYPE_H_INCLUDED__
2 #define __ENUM_TYPE_H_INCLUDED__
3 
4 #include <type_traits>
5 
6 namespace saga
7 {
8 
9 namespace core
10 {
11 
12 template <typename E>
13 constexpr inline auto enumToPOD(E e) noexcept
14 {
15  return static_cast<std::underlying_type_t<E>>(e);
16 }
17 
18 } // namespace core
19 } // namespace saga
20 
21 #endif
22 
saga::core::enumToPOD
constexpr auto enumToPOD(E e) noexcept
Definition: enumType.hpp:13
saga
Definition: aabbox3d.h:11