Function size

Synopsis

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

size_type size() const noexcept

Description

Returns the number of entities that have the given components.

Return
Number of entities that have the given components.

Source

Lines 647-649 in src/entt/entity/group.hpp.

[[nodiscard]] size_type size() const ENTT_NOEXCEPT {
    return *length;
}





Add Discussion

Log in to comment