Function to_version
Synopsis
#include <src/entt/entity/entity.hpp>
template <typename Entity>
constexpr entt_traits< Entity >::version_type to_version(const Entity value)
Description
Returns the version part once converted to the underlying type.
- Parameters
value
- The value to convert.- Returns
- The integral representation of the version part.
- Template Parameters
Entity
- The value type.
Source
Lines 156-159 in src/entt/entity/entity.hpp.
template<typename Entity>
[[nodiscard]] constexpr typename entt_traits<Entity>::version_type to_version(const Entity value) ENTT_NOEXCEPT {
return entt_traits<Entity>::to_version(value);
}