Function has

Synopsis

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

template <typename... Component>
decltype(auto) has() const

Description

Checks if a handle has all the given components.

See
basic_registry::has
Template Parameters

Component - Components for which to perform the check.

Return
True if the handle has all the components, false otherwise.

Source

Lines 210-213 in src/entt/entity/handle.hpp.

template<typename... Component>
[[nodiscard]] decltype(auto) has() const {
    return reg->template has<Component...>(entt);
}





Add Discussion

Log in to comment