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
15
16namespace msgpack {
17
21
22namespace type {
23
24template <typename T>
25struct array_ref;
26
27template <typename T>
28typename msgpack::enable_if<
29 !msgpack::is_array<T const>::value,
30 array_ref<T const>
31>::type
32make_array_ref(T const& t);
33
34template <typename T>
35typename msgpack::enable_if<
36 !msgpack::is_array<T>::value,
37 array_ref<T>
38>::type
39make_array_ref(T& t);
40
41template <typename T, std::size_t N>
42array_ref<const T[N]> make_array_ref(const T(&t)[N]);
43
44template <typename T, std::size_t N>
45array_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< Tconst >::value, array_ref< Tconst > >::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