OLD | NEW |
1 // This file was GENERATED by command: | 1 // This file was GENERATED by command: |
2 // pump.py bind.h.pump | 2 // pump.py bind.h.pump |
3 // DO NOT EDIT BY HAND!!! | 3 // DO NOT EDIT BY HAND!!! |
4 | 4 |
5 | 5 |
6 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 6 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
7 // Use of this source code is governed by a BSD-style license that can be | 7 // Use of this source code is governed by a BSD-style license that can be |
8 // found in the LICENSE file. | 8 // found in the LICENSE file. |
9 | 9 |
10 #ifndef BASE_BIND_H_ | 10 #ifndef BASE_BIND_H_ |
11 #define BASE_BIND_H_ | 11 #define BASE_BIND_H_ |
12 #pragma once | 12 #pragma once |
13 | 13 |
14 #include "base/bind_internal.h" | 14 #include "base/bind_internal.h" |
15 #include "base/callback_helpers.h" | 15 #include "base/callback_internal.h" |
16 | 16 |
17 // See base/callback.h for how to use these functions. | 17 // See base/callback.h for how to use these functions. |
18 // | 18 // |
19 // IMPLEMENTATION NOTE | 19 // IMPLEMENTATION NOTE |
20 // Though Bind()'s result is meant to be stored in a Callback<> type, it | 20 // Though Bind()'s result is meant to be stored in a Callback<> type, it |
21 // cannot actually return the exact type without requiring a large amount | 21 // cannot actually return the exact type without requiring a large amount |
22 // of extra template specializations. The problem is that in order to | 22 // of extra template specializations. The problem is that in order to |
23 // discern the correct specialization of Callback<>, Bind would need to | 23 // discern the correct specialization of Callback<>, Bind would need to |
24 // unwrap the function signature to determine the signature's arity, and | 24 // unwrap the function signature to determine the signature's arity, and |
25 // whether or not it is a method. | 25 // whether or not it is a method. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 Bind(Sig f, const P1& p1, const P2& p2, const P3& p3, const P4& p4, | 90 Bind(Sig f, const P1& p1, const P2& p2, const P3& p3, const P4& p4, |
91 const P5& p5, const P6& p6) { | 91 const P5& p5, const P6& p6) { |
92 return internal::MakeInvokerStorageHolder( | 92 return internal::MakeInvokerStorageHolder( |
93 new internal::InvokerStorage6<Sig, P1, P2, P3, P4, P5, P6>( | 93 new internal::InvokerStorage6<Sig, P1, P2, P3, P4, P5, P6>( |
94 f, p1, p2, p3, p4, p5, p6)); | 94 f, p1, p2, p3, p4, p5, p6)); |
95 } | 95 } |
96 | 96 |
97 } // namespace base | 97 } // namespace base |
98 | 98 |
99 #endif // BASE_BIND_H_ | 99 #endif // BASE_BIND_H_ |
OLD | NEW |