diff options
Diffstat (limited to 'boost/beast/websocket/detail/type_traits.hpp')
-rw-r--r-- | boost/beast/websocket/detail/type_traits.hpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/boost/beast/websocket/detail/type_traits.hpp b/boost/beast/websocket/detail/type_traits.hpp new file mode 100644 index 0000000000..6c2806146c --- /dev/null +++ b/boost/beast/websocket/detail/type_traits.hpp @@ -0,0 +1,36 @@ +// +// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com) +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// +// Official repository: https://github.com/boostorg/beast +// + +#ifndef BOOST_BEAST_WEBSOCKET_DETAIL_TYPE_TRAITS_HPP +#define BOOST_BEAST_WEBSOCKET_DETAIL_TYPE_TRAITS_HPP + +#include <boost/beast/websocket/rfc6455.hpp> +#include <boost/beast/core/detail/type_traits.hpp> + +namespace boost { +namespace beast { +namespace websocket { +namespace detail { + +template<class F> +using is_RequestDecorator = + typename beast::detail::is_invocable<F, + void(request_type&)>::type; + +template<class F> +using is_ResponseDecorator = + typename beast::detail::is_invocable<F, + void(response_type&)>::type; + +} // detail +} // websocket +} // beast +} // boost + +#endif |