Go to the documentation of this file.
10 #ifndef MSGPACK_V1_CHECK_CONTAINER_SIZE_HPP
11 #define MSGPACK_V1_CHECK_CONTAINER_SIZE_HPP
24 :std::runtime_error(msg) {}
25 #if !defined(MSGPACK_USE_CPP03)
27 std::runtime_error(msg) {}
28 #endif // !defined(MSGPACK_USE_CPP03)
33 template <std::
size_t N>
42 template <std::
size_t N>
56 detail::check_container_size<sizeof(T)>(
size);
57 return static_cast<uint32_t
>(
size);
67 #endif // MSGPACK_V1_CHECK_CONTAINER_SIZE_HPP
Definition: check_container_size.hpp:22
void check_container_size(std::size_t size)
Definition: check_container_size.hpp:34
Definition: adaptor_base.hpp:15
uint32_t checked_get_container_size(T size)
Definition: check_container_size.hpp:55
void check_container_size_for_ext< 4 >(std::size_t size)
Definition: check_container_size.hpp:48
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
void check_container_size_for_ext(std::size_t size)
Definition: check_container_size.hpp:43
std::size_t size(T const &t)
Definition: size_equal_only.hpp:24
container_size_overflow(const char *msg)
Definition: check_container_size.hpp:26
void check_container_size< 4 >(std::size_t)
Definition: check_container_size.hpp:39
container_size_overflow(const std::string &msg)
Definition: check_container_size.hpp:23