CCollisionInfoList: Simplify definition of begin() and end()

Same behavior, but without a verbose return type.
This commit is contained in:
Lioncash 2020-03-17 21:40:00 -04:00
parent 6ddbd15cfc
commit 457c116275
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