Function cbegin

Synopsis

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

const_iterator cbegin() const noexcept

Description

Returns an iterator to the beginning.

The returned iterator points to the first instance of the internal array. If the storage is empty, the returned iterator will be equal to end().

Returns
An iterator to the first instance of the internal array.

Source

Lines 247-250 in src/entt/entity/storage.hpp.

[[nodiscard]] const_iterator cbegin() const ENTT_NOEXCEPT {
    const typename traits_type::difference_type pos = underlying_type::size();
    return const_iterator{instances, pos};
}





Add Discussion

Log in to comment