Function visit

Synopsis

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

template <typename Func>
void visit(Func &&func) const

Description

Visits a handle and returns the types for its components.

See
basic_registry::visit
Template Parameters

Func - Type of the function object to invoke.

Parameters

func - A valid function object.

Source

Lines 279-282 in src/entt/entity/handle.hpp.

template<typename Func>
void visit(Func &&func) const {
    reg->visit(entt, std::forward<Func>(func));
}





Add Discussion

Log in to comment