Home | History | Annotate | Download | only in base

Lines Matching refs:Args

108           typename Args,
114 typename... Args,
118 TypeList<Args...>,
121 : AssertConstructible<Ns, Args, std::decay_t<Args>, Unwrapped, Params>... {
157 // Transforms |Args| into `Unwrapped` types, and packs them into a TypeList.
160 template <bool is_once, bool is_method, typename... Args>
162 using Type = TypeList<TransformToUnwrappedType<is_once, Args>...>;
169 template <bool is_once, typename Receiver, typename... Args>
170 struct MakeUnwrappedTypeListImpl<is_once, true, Receiver, Args...> {
173 TransformToUnwrappedType<is_once, Args>...>;
176 template <bool is_once, bool is_method, typename... Args>
178 typename MakeUnwrappedTypeListImpl<is_once, is_method, Args...>::Type;
183 template <typename Functor, typename... Args>
184 inline OnceCallback<MakeUnboundRunType<Functor, Args...>>
185 BindOnce(Functor&& functor, Args&&... args) {
192 // This block checks if each |args| matches to the corresponding params of the
195 using Helper = internal::BindTypeHelper<Functor, Args...>;
200 Args&&...>;
205 "The bound args need to be convertible to the target params.");
207 using BindState = internal::MakeBindStateType<Functor, Args...>;
208 using UnboundRunType = MakeUnboundRunType<Functor, Args...>;
222 std::forward<Args>(args)...));
226 template <typename Functor, typename... Args>
227 inline RepeatingCallback<MakeUnboundRunType<Functor, Args...>>
228 BindRepeating(Functor&& functor, Args&&... args) {
233 // This block checks if each |args| matches to the corresponding params of the
236 using Helper = internal::BindTypeHelper<Functor, Args...>;
241 Args&&...>;
246 "The bound args need to be convertible to the target params.");
248 using BindState = internal::MakeBindStateType<Functor, Args...>;
249 using UnboundRunType = MakeUnboundRunType<Functor, Args...>;
263 std::forward<Args>(args)...));
269 template <typename Functor, typename... Args>
270 inline Callback<MakeUnboundRunType<Functor, Args...>>
271 Bind(Functor&& functor, Args&&... args) {
273 std::forward<Args>(args)...);
472 template <typename R, typename... Args>
473 base::mac::ScopedBlock<R (^)(Args...)> RetainBlock(R (^block)(Args...)) {
474 return base::mac::ScopedBlock<R (^)(Args...)>(block,