Function to_integral

Synopsis

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

template <typename Entity>
constexpr auto to_integral(const Entity entity)

Description

Converts an entity to its underlying type.

Template Parameters

Entity - The value type.

Parameters

entity - The value to convert.

Returns
The integral representation of the given value.

Source

Lines 140-143 in src/entt/entity/entity.hpp.

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





Add Discussion

Log in to comment