mirror of
https://github.com/projectPiki/pikmin2.git
synced 2024-11-23 21:39:44 +00:00
21 lines
447 B
C++
21 lines
447 B
C++
#ifndef _STD_FUNCTIONAL_H
|
|
#define _STD_FUNCTIONAL_H
|
|
|
|
#include "types.h"
|
|
|
|
namespace std {
|
|
template <typename LHS, typename RHS, typename Result>
|
|
struct binary_function {
|
|
typedef LHS first_argument_type;
|
|
typedef RHS second_argument_type;
|
|
typedef Result result_type;
|
|
};
|
|
|
|
template <typename T>
|
|
struct less : public binary_function<T, T, bool> {
|
|
bool operator()(const T& lhs, const T& rhs) const { return lhs < rhs; }
|
|
};
|
|
} // namespace std
|
|
|
|
#endif
|