cpp_config_decl.hpp
Go to the documentation of this file.
//
// MessagePack for C++ C++03/C++11 Adaptation
//
// Copyright (C) 2016 KONDO Takatoshi
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MSGPACK_V1_CPP_CONFIG_DECL_HPP
#define MSGPACK_V1_CPP_CONFIG_DECL_HPP
#include "msgpack/versioning.hpp"
#if !defined(MSGPACK_USE_CPP03)
# if defined(_MSC_VER)
# if _MSC_VER < 1900
# define MSGPACK_USE_CPP03
# endif
# elif (__cplusplus < 201103L)
# define MSGPACK_USE_CPP03
# endif
#endif // MSGPACK_USE_CPP03
#if defined(MSGPACK_USE_CPP03)
#if defined(nullptr)
# if defined (__cplusplus_cli)
# define MSGPACK_NULLPTR __nullptr
# else // defined (__cplusplus_cli)
# define MSGPACK_NULLPTR nullptr
# endif // defined (__cplusplus_cli)
#else // defined(nullptr)
# define MSGPACK_NULLPTR (0)
#endif // defined(nullptr)
#include <memory>
namespace msgpack {
MSGPACK_API_VERSION_NAMESPACE(v1) {
template <typename T>
struct unique_ptr;
template <typename T>
T& move(T& t);
template <typename T>
T const& move(T const& t);
template <bool P, typename T = void>
struct enable_if;
template<typename T, T val>
struct integral_constant;
typedef integral_constant<bool, true> true_type;
typedef integral_constant<bool, false> false_type;
template<class T, class U>
struct is_same;
template<typename T>
struct underlying_type;
template<class T>
struct is_array;
template<class T>
struct remove_const;
template<class T>
struct remove_volatile;
template<class T>
struct remove_cv;
template<class T>
struct is_pointer;
} // MSGPACK_API_VERSION_NAMESPACE(v1)
} // namespace msgpack
#else // MSGPACK_USE_CPP03
#if defined (__cplusplus_cli)
# define MSGPACK_NULLPTR __nullptr
#else // defined (__cplusplus_cli)
# define MSGPACK_NULLPTR nullptr
#endif // defined (__cplusplus_cli)
#include <memory>
#include <tuple>
namespace msgpack {
MSGPACK_API_VERSION_NAMESPACE(v1) {
// unique_ptr
using std::unique_ptr;
// using std::make_unique; // since C++14
using std::hash;
// utility
using std::move;
using std::swap;
using std::enable_if;
using std::is_same;
using std::underlying_type;
using std::is_array;
using std::remove_const;
using std::remove_volatile;
using std::remove_cv;
using std::is_pointer;
} // MSGPACK_API_VERSION_NAMESPACE(v1)
} // namespace msgpack
#endif // MSGPACK_USE_CPP03
#if defined(__has_include)
#define MSGPACK_HAS_INCLUDE __has_include
#else // defined(__has_include)
#define MSGPACK_HAS_INCLUDE(header) 0
#endif // defined(__has_include)
#endif // MSGPACK_V1_CPP_CONFIG_DECL_HPP
msgpack::is_array
Definition: cpp_config_decl.hpp:71
msgpack::remove_const
Definition: cpp_config_decl.hpp:74
msgpack::underlying_type
Definition: cpp_config_decl.hpp:68
msgpack::true_type
integral_constant< bool, true > true_type
Definition: cpp_config_decl.hpp:59
msgpack::is_same
Definition: cpp_config_decl.hpp:65
msgpack
Definition: adaptor_base.hpp:15
msgpack::remove_cv
Definition: cpp_config_decl.hpp:78
versioning.hpp
msgpack::move
T const & move(T const &t)
msgpack::unique_ptr
Definition: cpp_config_decl.hpp:47
msgpack::integral_constant
Definition: cpp_config_decl.hpp:59
msgpack::is_pointer
Definition: cpp_config_decl.hpp:81
msgpack::enable_if
Definition: cpp_config_decl.hpp:56
MSGPACK_API_VERSION_NAMESPACE
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
msgpack::false_type
integral_constant< bool, false > false_type
Definition: cpp_config_decl.hpp:62
msgpack::remove_volatile
Definition: cpp_config_decl.hpp:76
msgpack::move
T & move(T &t)