mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-13 06:46:08 +00:00
Add rstl::binary_find
Including CAnimData::GetBoundingBox
Former-commit-id: e4a864880b
This commit is contained in:
@@ -15,6 +15,20 @@ public:
|
||||
L first;
|
||||
R second;
|
||||
};
|
||||
|
||||
template < typename P >
|
||||
struct select1st {
|
||||
const P& operator()(const P& it) const { return it; }
|
||||
};
|
||||
|
||||
template < typename K, typename V >
|
||||
struct select1st< pair< K, V > > {
|
||||
typedef K value_type;
|
||||
|
||||
const K& operator()(const pair< K, V >& it) const { return it.first; }
|
||||
};
|
||||
|
||||
|
||||
} // namespace rstl
|
||||
|
||||
#endif // _RSTL_PAIR
|
||||
|
||||
Reference in New Issue
Block a user