15 #ifndef CEREAL_RAPIDJSON_INTERNAL_SWAP_H_
16 #define CEREAL_RAPIDJSON_INTERNAL_SWAP_H_
18 #include "../rapidjson.h"
20 #if defined(__clang__)
21 CEREAL_RAPIDJSON_DIAG_PUSH
22 CEREAL_RAPIDJSON_DIAG_OFF(c++98-compat)
33 inline void Swap(T&
a, T& b) CEREAL_RAPIDJSON_NOEXCEPT {
42 #if defined(__clang__)
43 CEREAL_RAPIDJSON_DIAG_POP
#define CEREAL_RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition: rapidjson.h:121
#define CEREAL_RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition: rapidjson.h:124
Definition: document.h:416
void Swap(T &a, T &b) CEREAL_RAPIDJSON_NOEXCEPT
Custom swap() to avoid dependency on C++ <algorithm> header.
Definition: swap.h:33
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1181