2010-08-22 02:59:46 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2010-11-16 23:09:02 +01:00
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
2010-08-22 02:59:46 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// <functional>
|
|
|
|
|
2010-12-08 21:09:09 +01:00
|
|
|
// template <class Arg, class Result>
|
|
|
|
// struct unary_function
|
|
|
|
// {
|
|
|
|
// typedef Arg argument_type;
|
|
|
|
// typedef Result result_type;
|
|
|
|
// };
|
2010-08-22 02:59:46 +02:00
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <type_traits>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2010-12-08 21:09:09 +01:00
|
|
|
static_assert((std::is_same<std::unary_function<unsigned, char>::argument_type, unsigned>::value), "");
|
|
|
|
static_assert((std::is_same<std::unary_function<unsigned, char>::result_type, char>::value), "");
|
2010-08-22 02:59:46 +02:00
|
|
|
}
|