diff --git a/src/entt/entity/view.hpp b/src/entt/entity/view.hpp index 4389397f9..834fd6aa1 100644 --- a/src/entt/entity/view.hpp +++ b/src/entt/entity/view.hpp @@ -269,12 +269,12 @@ class basic_view, exclude_t> { } public: + /*! @brief Common type among all storage types. */ + using common_type = base_type; /*! @brief Underlying entity identifier. */ using entity_type = underlying_type; /*! @brief Unsigned integer type. */ using size_type = std::size_t; - /*! @brief Common type among all storage types. */ - using common_type = base_type; /*! @brief Bidirectional iterator type. */ using iterator = internal::view_iterator; /*! @brief Iterable view type. */ @@ -287,7 +287,7 @@ public: view{} {} /** - * @brief Constructs a multi-type view from a set of storage classes. + * @brief Constructs a view from a set of storage classes. * @param value The storage for the types to iterate. * @param excl The storage for the types used to filter the view. */ @@ -299,7 +299,7 @@ public: } /** - * @brief Constructs a multi-type view from a set of storage classes. + * @brief Constructs a view from a set of storage classes. * @param value The storage for the types to iterate. * @param excl The storage for the types used to filter the view. */ @@ -508,11 +508,8 @@ public: * @brief Iterates entities and components and applies the given function * object to them. * - * The function object is invoked for each entity. It is provided with the - * entity itself and a set of references to non-empty components. The - * _constness_ of the components is as requested.
* The signature of the function must be equivalent to one of the following - * forms: + * (non-empty types only, constness as requested): * * @code{.cpp} * void(const entity_type, Type &...); @@ -588,12 +585,12 @@ class basic_view, exclude_t<>, std::void_t value, std::tuple<> = {}) noexcept @@ -818,21 +815,14 @@ public: * @brief Iterates entities and components and applies the given function * object to them. * - * The function object is invoked for each entity. It is provided with the - * entity itself and a reference to the component if it's a non-empty one. - * The _constness_ of the component is as requested.
* The signature of the function must be equivalent to one of the following - * forms: + * (non-empty types only, constness as requested): * * @code{.cpp} * void(const entity_type, Type &); * void(typename Type &); * @endcode * - * @note - * Empty types aren't explicitly instantiated and therefore they are never - * returned during iterations. - * * @tparam Func Type of the function object to invoke. * @param func A valid function object. */