MessagePack for C++
array_ref_decl.hpp
Go to the documentation of this file.
1 //
2 // MessagePack for C++ static resolution routine
3 //
4 // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 //
10 #ifndef MSGPACK_V1_TYPE_ARRAY_REF_DECL_HPP
11 #define MSGPACK_V1_TYPE_ARRAY_REF_DECL_HPP
12 
13 #include "msgpack/versioning.hpp"
15 
16 namespace msgpack {
17 
21 
22 namespace type {
23 
24 template <typename T>
25 struct array_ref;
26 
27 template <typename T>
28 typename msgpack::enable_if<
29  !msgpack::is_array<T const>::value,
30  array_ref<T const>
31 >::type
32 make_array_ref(T const& t);
33 
34 template <typename T>
35 typename msgpack::enable_if<
36  !msgpack::is_array<T>::value,
37  array_ref<T>
38 >::type
39 make_array_ref(T& t);
40 
41 template <typename T, std::size_t N>
42 array_ref<const T[N]> make_array_ref(const T(&t)[N]);
43 
44 template <typename T, std::size_t N>
45 array_ref<T[N]> make_array_ref(T(&t)[N]);
46 
47 } // namespace type
48 
50 } // MSGPACK_API_VERSION_NAMESPACE(v1)
52 
53 } // namespace msgpack
54 
55 #endif // MSGPACK_V1_TYPE_ARRAY_REF_DECL_HPP
msgpack::enable_if< !msgpack::is_array< T const >::value, array_ref< T const >>::type make_array_ref(const T &t)
Definition: array_ref.hpp:126
Definition: adaptor_base.hpp:15
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66