Merge pull request #246 from lioncash/def

CCollisionInfoList: Simplify definition of begin() and end()
This commit is contained in:
Luke Street 2020-03-18 01:04:19 -04:00 committed by GitHub
commit 66c321d4a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -53,9 +53,10 @@ public:
void Clear() { x0_list.clear(); }
const CCollisionInfo& Front() const { return x0_list.front(); }
const CCollisionInfo& GetItem(int i) const { return x0_list[i]; }
rstl::reserved_vector<CCollisionInfo, 32>::iterator end() { return x0_list.end(); }
rstl::reserved_vector<CCollisionInfo, 32>::const_iterator end() const { return x0_list.end(); }
rstl::reserved_vector<CCollisionInfo, 32>::iterator begin() { return x0_list.begin(); }
rstl::reserved_vector<CCollisionInfo, 32>::const_iterator begin() const { return x0_list.begin(); }
auto end() noexcept { return x0_list.end(); }
auto end() const noexcept { return x0_list.end(); }
auto begin() noexcept { return x0_list.begin(); }
auto begin() const noexcept { return x0_list.begin(); }
};
} // namespace urde