mirror of https://github.com/PrimeDecomp/prime.git
22 lines
429 B
C++
22 lines
429 B
C++
#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; }
|
|
};
|
|
|
|
template < typename T >
|
|
bool less<T>::operator()(const T& a, const T& b) const { return a < b; }
|
|
|
|
} // namespace rstl
|
|
|
|
#endif // _RSTL_FUNCTIONAL
|