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