Warning!
The version you're viewing is not the latest.
Go to the latest version
Struct size_of
Synopsis
#include <src/entt/core/type_traits.hpp>
template<typename Type, typename = void>
struct size_of: std::integral_constant<std::size_t, 0u>
Description
A type-only sizeof
wrapper that returns 0 where sizeof
complains.
- Template Parameters
Type
- The type of which to return the size.The
- size of the type ifsizeof
accepts it, 0 otherwise.
Inheritance
Ancestors: std::integral_constant< std::size_t, 0u >
Source
Lines 43-44 in src/entt/core/type_traits.hpp.
template<typename Type, typename = void>
struct size_of: std::integral_constant<std::size_t, 0u> {};