Home | History | Annotate | Download | only in base

Lines Matching refs:Args

33 //  (Bound)Args -- A set of types that stores the arguments.
182 template <bool is_method, typename... Args>
185 template <typename T, typename... Args>
186 struct IsWeakMethod<true, T, Args...> : IsWeakReceiver<T> {};
257 template <typename R, typename... Args>
258 struct MakeFunctionTypeImpl<R, TypeList<Args...>> {
261 typedef R Type(Args...);
273 template <typename R, typename... Args>
274 struct ExtractArgsImpl<R(Args...)> {
276 using ArgsList = TypeList<Args...>;
293 template <typename Callable, typename R, typename... Args>
294 struct ExtractCallableRunTypeImpl<Callable, R (Callable::*)(Args...)> {
295 using Type = R(Args...);
298 template <typename Callable, typename R, typename... Args>
299 struct ExtractCallableRunTypeImpl<Callable, R (Callable::*)(Args...) const> {
300 using Type = R(Args...);
331 // HasRefCountedTypeAsRawPtr selects true_type when any of the |Args| is a raw
335 template <typename... Args>
341 template <typename T, typename... Args>
342 struct HasRefCountedTypeAsRawPtr<T, Args...>
345 HasRefCountedTypeAsRawPtr<Args...>> {};
353 template <typename R, typename... Args>
354 struct ForceVoidReturn<R(Args...)> {
355 using RunType = void(Args...);
393 RunArgs&&... args) {
394 return std::forward<RunFunctor>(functor)(std::forward<RunArgs>(args)...);
399 template <typename R, typename... Args>
400 struct FunctorTraits<R (*)(Args...)> {
401 using RunType = R(Args...);
406 static R Invoke(Function&& function, RunArgs&&... args) {
407 return std::forward<Function>(function)(std::forward<RunArgs>(args)...);
414 template <typename R, typename... Args>
415 struct FunctorTraits<R(__stdcall*)(Args...)> {
416 using RunType = R(Args...);
421 static R Invoke(R(__stdcall* function)(Args...), RunArgs&&... args) {
422 return function(std::forward<RunArgs>(args)...);
427 template <typename R, typename... Args>
428 struct FunctorTraits<R(__fastcall*)(Args...)> {
429 using RunType = R(Args...);
434 static R Invoke(R(__fastcall* function)(Args...), RunArgs&&... args) {
435 return function(std::forward<RunArgs>(args)...);
456 template <typename R, typename... Args>
457 struct FunctorTraits<R (^)(Args...)> {
458 using RunType = R(Args...);
463 static R Invoke(BlockType&& block, RunArgs&&... args) {
470 Args...) = block;
471 return scoped_block(std::forward<RunArgs>(args)...);
477 template <typename R, typename... Args>
478 struct FunctorTraits<base::mac::ScopedBlock<R (^)(Args...)>> {
479 using RunType = R(Args...);
484 static R Invoke(BlockType&& block, RunArgs&&... args) {
488 base::mac::ScopedBlock<R (^)(Args...)> scoped_block(block);
489 return scoped_block.get()(std::forward<RunArgs>(args)...);
497 template <typename R, typename Receiver, typename... Args>
498 struct FunctorTraits<R (Receiver::*)(Args...)> {
499 using RunType = R(Receiver*, Args...);
506 RunArgs&&... args) {
507 return ((*receiver_ptr).*method)(std::forward<RunArgs>(args)...);
512 template <typename R, typename Receiver, typename... Args>
513 struct FunctorTraits<R (Receiver::*)(Args...) const> {
514 using RunType = R(const Receiver*, Args...);
521 RunArgs&&... args) {
522 return ((*receiver_ptr).*method)(std::forward<RunArgs>(args)...);
530 template <typename R, typename... Args>
531 struct FunctorTraits<R (*)(Args...) noexcept> : FunctorTraits<R (*)(Args...)> {
534 template <typename R, typename Receiver, typename... Args>
535 struct FunctorTraits<R (Receiver::*)(Args...) noexcept>
536 : FunctorTraits<R (Receiver::*)(Args...)> {};
538 template <typename R, typename Receiver, typename... Args>
539 struct FunctorTraits<R (Receiver::*)(Args...) const noexcept>
540 : FunctorTraits<R (Receiver::*)(Args...) const> {};
551 RunArgs&&... args) {
554 std::forward<RunArgs>(args)...);
559 template <typename R, typename... Args>
560 struct FunctorTraits<OnceCallback<R(Args...)>> {
561 using RunType = R(Args...);
566 static R Invoke(CallbackType&& callback, RunArgs&&... args) {
569 std::forward<RunArgs>(args)...);
574 template <typename R, typename... Args>
575 struct FunctorTraits<RepeatingCallback<R(Args...)>> {
576 using RunType = R(Args...);
581 static R Invoke(CallbackType&& callback, RunArgs&&... args) {
584 std::forward<RunArgs>(args)...);
605 static inline ReturnType MakeItSo(Functor&& functor, RunArgs&&... args) {
608 std::forward<RunArgs>(args)...);
623 RunArgs&&... args) {
629 std::forward<RunArgs>(args)...);
932 template <typename Receiver, typename... Args>
935 const Args&...) {