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 if sizeof accepts it, 0 otherwise.

Inheritance

Ancestors: std::integral_constant< std::size_t, 0u >

Source

Lines 20-21 in src/entt/core/type_traits.hpp.

template<typename Type, typename = void>
struct size_of: std::integral_constant<std::size_t, 0u> {};





Add Discussion

Log in to comment