MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / type require

Method type require

3rd/asio-1.24.0/include/asio/execution/blocking.hpp:636–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634
635template <typename Executor>
636class adapter
637{
638public:
639 adapter(int, const Executor& e) ASIO_NOEXCEPT
640 : executor_(e)
641 {
642 }
643
644 adapter(const adapter& other) ASIO_NOEXCEPT
645 : executor_(other.executor_)
646 {
647 }
648
649#if defined(ASIO_HAS_MOVE)
650 adapter(adapter&& other) ASIO_NOEXCEPT
651 : executor_(ASIO_MOVE_CAST(Executor)(other.executor_))
652 {
653 }
654#endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
655
656 template <int I>
657 static ASIO_CONSTEXPR always_t<I> query(
658 blocking_t<I>) ASIO_NOEXCEPT
659 {
660 return always_t<I>();
661 }
662
663 template <int I>
664 static ASIO_CONSTEXPR always_t<I> query(
665 possibly_t<I>) ASIO_NOEXCEPT
666 {
667 return always_t<I>();
668 }
669
670 template <int I>
671 static ASIO_CONSTEXPR always_t<I> query(
672 always_t<I>) ASIO_NOEXCEPT
673 {
674 return always_t<I>();
675 }
676
677 template <int I>
678 static ASIO_CONSTEXPR always_t<I> query(
679 never_t<I>) ASIO_NOEXCEPT
680 {
681 return always_t<I>();
682 }
683
684 template <typename Property>
685 typename enable_if<
686 can_query<const Executor&, Property>::value,
687 typename query_result<const Executor&, Property>::type
688 >::type query(const Property& p) const
689 ASIO_NOEXCEPT_IF((
690 is_nothrow_query<const Executor&, Property>::value))
691 {
692 return asio::query(executor_, p);
693 }

Callers

nothing calls this directly

Calls 1

requireFunction · 0.70

Tested by

no test coverage detected