Function to_integral

Synopsis

#include <src/entt/entity/entity.hpp>

template <typename Entity>
constexpr entt_traits< Entity >::entity_type to_integral(const Entity value)

Description

Converts an entity to its underlying type.

Parameters

value - The value to convert.

Returns
The integral representation of the given value.
Template Parameters

Entity - The value type.

Source

Lines 138-141 in src/entt/entity/entity.hpp.

template<typename Entity>
[[nodiscard]] constexpr typename entt_traits<Entity>::entity_type to_integral(const Entity value) ENTT_NOEXCEPT {
    return entt_traits<Entity>::to_integral(value);
}





Add Discussion

Log in to comment