x3_unpack_decl.hpp 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // MessagePack for C++ deserializing routine
  3. //
  4. // Copyright (C) 2017 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_V3_X3_UNPACK_DECL_HPP
  11. #define MSGPACK_V3_X3_UNPACK_DECL_HPP
  12. #if defined(MSGPACK_USE_X3_PARSE)
  13. #include "msgpack/v2/x3_unpack_decl.hpp"
  14. namespace msgpack {
  15. /// @cond
  16. MSGPACK_API_VERSION_NAMESPACE(v3) {
  17. /// @endcond
  18. namespace detail {
  19. using v2::detail::unpack_imp;
  20. } // detail
  21. template <typename Iterator>
  22. msgpack::object_handle unpack(
  23. Iterator&& begin, Iterator&& end,
  24. bool& referenced,
  25. unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR,
  26. unpack_limit const& limit = unpack_limit());
  27. template <typename Iterator>
  28. msgpack::object_handle unpack(
  29. Iterator&& begin, Iterator&& end,
  30. unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR,
  31. unpack_limit const& limit = unpack_limit());
  32. template <typename Iterator>
  33. msgpack::object unpack(
  34. msgpack::zone& z,
  35. Iterator&& begin, Iterator&& end,
  36. bool& referenced,
  37. unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR,
  38. unpack_limit const& limit = unpack_limit());
  39. template <typename Iterator>
  40. msgpack::object unpack(
  41. msgpack::zone& z,
  42. Iterator&& begin, Iterator&& end,
  43. unpack_reference_func f = MSGPACK_NULLPTR, void* user_data = MSGPACK_NULLPTR,
  44. unpack_limit const& limit = unpack_limit());
  45. /// @cond
  46. } // MSGPACK_API_VERSION_NAMESPACE(v3)
  47. /// @endcond
  48. } // namespace msgpack
  49. #endif // defined(MSGPACK_USE_X3_PARSE)
  50. #endif // MSGPACK_V3_X3_UNPACK_DECL_HPP