Home | History | Annotate | Download | only in temp.variadic

Lines Matching defs:function

4 // Example function implementation from the variadic templates proposal,
7 template<typename Signature> class function;
28 class function<R (Args...)> {
31 function() : invoker (0) { }
32 function(const function& other) : invoker(0) {
37 template<typename F> function(const F& f) : invoker(0) {
41 ~function() {
46 function& operator=(const function& other) {
47 function(other).swap(*this);
52 function& operator=(const F& f) {
53 function(f).swap(*this);
57 void swap(function& other) {
79 function<int(int, int)> f2a;
80 function<int(int, int)> f2b = add<int>();
81 function<int(int, int)> f2c = add<float>();
82 function<int(int, int)> f2d(f2b);
83 function<int(int, int)> f2e = &add_ints;