mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-13 20:46:07 +00:00
Add rstl::binary_find
Including CAnimData::GetBoundingBox
Former-commit-id: e4a864880b
This commit is contained in:
18
include/rstl/functional.hpp
Normal file
18
include/rstl/functional.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _RSTL_FUNCTIONAL
|
||||
#define _RSTL_FUNCTIONAL
|
||||
|
||||
namespace rstl {
|
||||
|
||||
template < typename P >
|
||||
struct identity {
|
||||
const P& operator()(const P& it) const { return it; }
|
||||
};
|
||||
|
||||
template < typename T >
|
||||
struct less {
|
||||
bool operator()(const T& a, const T& b) const { return a < b; }
|
||||
};
|
||||
|
||||
} // namespace rstl
|
||||
|
||||
#endif // _RSTL_FUNCTIONAL
|
||||
Reference in New Issue
Block a user