mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
add ptr_fun, mem_fun, mem_fun_ref
This commit is contained in:
parent
4a8e938887
commit
f86d17d0d4
46 changed files with 322 additions and 76 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue