• Home
  • Raw
  • Download

Lines Matching refs:Functor

57 template <typename Functor, typename BoundArgsTuple, typename SFINAE = void>
62 template <typename Functor, typename SFINAE = void>
324 template <typename Functor, typename SFINAE = void>
361 template <typename Functor, typename SFINAE>
383 template <typename Functor>
384 struct FunctorTraits<Functor,
385 std::enable_if_t<IsCallableObject<Functor>::value &&
386 std::is_empty<Functor>::value>> {
387 using RunType = ExtractCallableRunType<Functor>;
588 template <typename Functor>
589 using MakeFunctorTraits = FunctorTraits<std::decay_t<Functor>>;
604 template <typename Functor, typename... RunArgs>
605 static inline ReturnType MakeItSo(Functor&& functor, RunArgs&&... args) {
606 using Traits = MakeFunctorTraits<Functor>;
607 return Traits::Invoke(std::forward<Functor>(functor),
620 template <typename Functor, typename BoundWeakPtr, typename... RunArgs>
621 static inline void MakeItSo(Functor&& functor,
626 using Traits = MakeFunctorTraits<Functor>;
627 Traits::Invoke(std::forward<Functor>(functor),
668 template <typename Functor, typename BoundArgsTuple, size_t... indices>
669 static inline R RunImpl(Functor&& functor,
673 static constexpr bool is_method = MakeFunctorTraits<Functor>::is_method;
681 std::forward<Functor>(functor),
689 template <typename Functor, typename... BoundArgs>
692 using FunctorTraits = MakeFunctorTraits<Functor>;
716 template <typename Functor>
717 std::enable_if_t<FunctorTraits<Functor>::is_nullable, bool> IsNull(
718 const Functor& functor) {
722 template <typename Functor>
723 std::enable_if_t<!FunctorTraits<Functor>::is_nullable, bool> IsNull(
724 const Functor&) {
729 template <typename Functor, typename BoundArgsTuple, size_t... indices>
730 bool ApplyCancellationTraitsImpl(const Functor& functor,
733 return CallbackCancellationTraits<Functor, BoundArgsTuple>::IsCancelled(
752 template <typename Functor, typename... BoundArgs>
756 CallbackCancellationTraits<Functor,
771 Functor functor_;
807 template <bool is_method, typename Functor, typename... BoundArgs>
810 template <typename Functor, typename... BoundArgs>
811 struct MakeBindStateTypeImpl<false, Functor, BoundArgs...> {
814 using Type = BindState<std::decay_t<Functor>, std::decay_t<BoundArgs>...>;
817 template <typename Functor>
818 struct MakeBindStateTypeImpl<true, Functor> {
819 using Type = BindState<std::decay_t<Functor>>;
822 template <typename Functor, typename Receiver, typename... BoundArgs>
823 struct MakeBindStateTypeImpl<true, Functor, Receiver, BoundArgs...> {
840 std::decay_t<Functor>,
847 template <typename Functor, typename... BoundArgs>
849 typename MakeBindStateTypeImpl<MakeFunctorTraits<Functor>::is_method,
850 Functor,
917 template <typename Functor, typename BoundArgsTuple, typename SFINAE>
923 template <typename Functor, typename... BoundArgs>
925 Functor,
928 internal::IsWeakMethod<internal::FunctorTraits<Functor>::is_method,
933 static bool IsCancelled(const Functor&,
946 template <typename Functor>
947 static bool IsCancelled(const Functor& functor, const BoundArgs&...) {
957 template <typename Functor>
958 static bool IsCancelled(const Functor& functor, const BoundArgs&...) {
965 template <typename Functor, typename... BoundArgs>
967 typename internal::BindTypeHelper<Functor, BoundArgs...>::UnboundRunType;