2010-05-11 21:42:16 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2010-05-11 23:36:01 +02:00
|
|
|
// The LLVM Compiler Infrastructure
|
2010-05-11 21:42:16 +02:00
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// <functional>
|
|
|
|
|
2010-08-22 02:20:12 +02:00
|
|
|
// template <class Fn, class T>
|
2010-05-11 21:42:16 +02:00
|
|
|
// binder2nd<Fn>
|
|
|
|
// bind2nd(const Fn& op, const T& x);
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
#include <cassert>
|
|
|
|
|
|
|
|
#include "../test_func.h"
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
assert(std::bind2nd(test_func(1), 5)(10) == 5.);
|
|
|
|
}
|