type_traits.hpp 898 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // Official repository: https://github.com/boostorg/beast
  8. //
  9. #ifndef BOOST_BEAST_WEBSOCKET_DETAIL_TYPE_TRAITS_HPP
  10. #define BOOST_BEAST_WEBSOCKET_DETAIL_TYPE_TRAITS_HPP
  11. #include <boost/beast/websocket/rfc6455.hpp>
  12. #include <boost/beast/core/detail/is_invocable.hpp>
  13. namespace boost {
  14. namespace beast {
  15. namespace websocket {
  16. namespace detail {
  17. template<class F>
  18. using is_request_decorator =
  19. typename beast::detail::is_invocable<F,
  20. void(request_type&)>::type;
  21. template<class F>
  22. using is_response_decorator =
  23. typename beast::detail::is_invocable<F,
  24. void(response_type&)>::type;
  25. } // detail
  26. } // websocket
  27. } // beast
  28. } // boost
  29. #endif