add ptr_fun, mem_fun, mem_fun_ref

This commit is contained in:
bolero-MURAKAMI 2012-04-11 23:28:29 +09:00
parent 4a8e938887
commit f86d17d0d4
46 changed files with 322 additions and 76 deletions

View file

@ -5,6 +5,7 @@
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/utility/forward.hpp>
#include <sprout/functional/base.hpp>
namespace sprout {
// 20.8.10 member function adaptors
@ -14,11 +15,11 @@ namespace sprout {
struct maybe_unary_or_binary_function {};
template<typename Res, typename T1>
struct maybe_unary_or_binary_function<Res, T1>
: public std::unary_function<T1, Res>
: public sprout::unary_function<T1, Res>
{};
template<typename Res, typename T1, typename T2>
struct maybe_unary_or_binary_function<Res, T1, T2>
: public std::binary_function<T1, T2, Res>
: public sprout::binary_function<T1, T2, Res>
{};
template<typename T, bool>