fixed comments
This commit is contained in:
@@ -574,7 +574,7 @@ public:
|
||||
* Syntactic sugar for the following snippet:
|
||||
*
|
||||
* @code{.cpp}
|
||||
* has<Tag>() && attachee<Tag>() == entity
|
||||
* registry.has<Tag>() && registry.attachee<Tag>() == entity
|
||||
* @endcode
|
||||
*
|
||||
* @tparam Tag Type of tag for which to perform the check.
|
||||
|
||||
@@ -275,7 +275,7 @@ public:
|
||||
*/
|
||||
bool has(entity_type entity) const ENTT_NOEXCEPT {
|
||||
const auto pos = size_type(entity & traits_type::entity_mask);
|
||||
// the in-use control bit permits to avoid accessing the direct vector
|
||||
// testing against pending permits to avoid accessing the direct vector
|
||||
return (pos < reverse.size()) && (reverse[pos] != pending);
|
||||
}
|
||||
|
||||
@@ -299,7 +299,7 @@ public:
|
||||
bool fast(entity_type entity) const ENTT_NOEXCEPT {
|
||||
const auto pos = size_type(entity & traits_type::entity_mask);
|
||||
assert(pos < reverse.size());
|
||||
// the in-use control bit permits to avoid accessing the direct vector
|
||||
// testing against pending permits to avoid accessing the direct vector
|
||||
return (reverse[pos] != pending);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user