Function basic_handle

Summary

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

(1) basic_handle() noexcept

(2) basic_handle(registry_type &ref, entity_type value) noexcept

Function overload

Synopsis

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

basic_handle() noexcept

Description

Constructs an invalid handle.

Source

Lines 33-35 in src/entt/entity/handle.hpp.

basic_handle() ENTT_NOEXCEPT
    : reg{}, entt{null}
{}

Synopsis

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

basic_handle(registry_type &ref, entity_type value) noexcept

Description

Constructs a handle from a given registry and entity.

Parameters

ref - An instance of the registry class.

value - An entity identifier.

Source

Lines 42-44 in src/entt/entity/handle.hpp.

basic_handle(registry_type &ref, entity_type value) ENTT_NOEXCEPT
    : reg{&ref}, entt{value}
{}





Add Discussion

Log in to comment