]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/beast/websocket/detail/type_traits.hpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / boost / beast / websocket / detail / type_traits.hpp
CommitLineData
b32b8144
FG
1//
2// Copyright (c) 2016-2017 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
10#ifndef BOOST_BEAST_WEBSOCKET_DETAIL_TYPE_TRAITS_HPP
11#define BOOST_BEAST_WEBSOCKET_DETAIL_TYPE_TRAITS_HPP
12
13#include <boost/beast/websocket/rfc6455.hpp>
14#include <boost/beast/core/detail/type_traits.hpp>
15
16namespace boost {
17namespace beast {
18namespace websocket {
19namespace detail {
20
21template<class F>
11fdf7f2 22using is_request_decorator =
b32b8144
FG
23 typename beast::detail::is_invocable<F,
24 void(request_type&)>::type;
25
26template<class F>
11fdf7f2 27using is_response_decorator =
b32b8144
FG
28 typename beast::detail::is_invocable<F,
29 void(response_type&)>::type;
30
31} // detail
32} // websocket
33} // beast
34} // boost
35
36#endif