MessagePack for C++
include
msgpack
v1
adaptor
size_equal_only_decl.hpp
Go to the documentation of this file.
1
//
2
// MessagePack for C++ static resolution routine
3
//
4
// Copyright (C) 2016 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_SIZE_EQUAL_ONLY_DECL_HPP
11
#define MSGPACK_V1_TYPE_SIZE_EQUAL_ONLY_DECL_HPP
12
13
#include "
msgpack/versioning.hpp
"
14
#include "
msgpack/adaptor/adaptor_base.hpp
"
15
#include "
msgpack/adaptor/msgpack_tuple.hpp
"
16
17
namespace
msgpack
{
18
20
MSGPACK_API_VERSION_NAMESPACE
(v1) {
22
23
namespace
type {
24
25
template
<
typename
T>
26
struct
size_equal_only;
27
28
template
<
typename
T>
29
size_equal_only<T>
make_size_equal_only
(T& t);
30
31
template
<
typename
T>
32
std::size_t
size
(T
const
& t);
33
34
template
<
typename
T, std::
size_t
N>
35
std::size_t
size
(
const
T(&)[N]);
36
37
#if !defined(MSGPACK_USE_CPP03)
38
39
template
<
typename
... T>
40
std::size_t
size
(std::tuple<T...>
const
&);
41
42
#endif // !defined(MSGPACK_USE_CPP03)
43
44
}
// namespace type
45
47
}
// MSGPACK_API_VERSION_NAMESPACE(v1)
49
50
}
// namespace msgpack
51
52
#endif // MSGPACK_V1_TYPE_SIZE_EQUAL_ONLY_DECL_HPP
msgpack::type::make_size_equal_only
size_equal_only< T > make_size_equal_only(T &t)
Definition:
size_equal_only.hpp:51
msgpack
Definition:
adaptor_base.hpp:15
MSGPACK_API_VERSION_NAMESPACE
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition:
versioning.hpp:58
adaptor_base.hpp
versioning.hpp
msgpack::type::size
std::size_t size(T const &t)
Definition:
size_equal_only.hpp:24
msgpack_tuple.hpp
Generated by
1.8.17