mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-16 22:17:02 +00:00
All CPlayer implemented (w/ some nonmatchings)
This commit is contained in:
@@ -17,6 +17,7 @@ public:
|
||||
}
|
||||
void AddValue(const T& value);
|
||||
rstl::optional_object< T > GetAverage() const;
|
||||
rstl::optional_object< T > GetEntry(int idx) const;
|
||||
};
|
||||
|
||||
template < typename T, int N >
|
||||
@@ -39,4 +40,13 @@ rstl::optional_object< T > TReservedAverage< T, N >::GetAverage() const {
|
||||
}
|
||||
}
|
||||
|
||||
template < typename T, int N >
|
||||
inline rstl::optional_object< T > TReservedAverage< T, N >::GetEntry(int idx) const {
|
||||
if (idx >= this->size()) {
|
||||
return rstl::optional_object_null();
|
||||
} else {
|
||||
return rstl::optional_object< T >(this->operator[](idx));
|
||||
}
|
||||
}
|
||||
|
||||
#endif // _TRESERVEDAVERAGE
|
||||
|
||||
Reference in New Issue
Block a user