Home | History | Annotate | Download | only in func.wrap.func.con

Lines Matching refs:FuncType

28 template <class FuncType, class AllocType>
34 std::function<FuncType> f = FunctionObject();
38 assert(f.template target<FuncType>() == 0);
39 assert(f.template target<FuncType*>() == 0);
41 std::function<FuncType> f2(std::allocator_arg, alloc, f);
45 assert(f2.template target<FuncType>() == 0);
46 assert(f2.template target<FuncType*>() == 0);
52 template <class FuncType, class AllocType>
58 FuncType* target = &FreeFunction;
59 std::function<FuncType> f = target;
61 assert(f.template target<FuncType*>());
62 assert(*f.template target<FuncType*>() == target);
63 assert(f.template target<FuncType>() == 0);
65 std::function<FuncType> f2(std::allocator_arg, alloc, f);
67 assert(f2.template target<FuncType*>());
68 assert(*f2.template target<FuncType*>() == target);
69 assert(f2.template target<FuncType>() == 0);
74 template <class TargetType, class FuncType, class AllocType>
81 std::function<FuncType> f = target;
85 assert(f.template target<FuncType*>() == 0);
87 std::function<FuncType> f2(std::allocator_arg, alloc, f);
91 assert(f2.template target<FuncType*>() == 0);