19 #ifndef RAPIDJSON_INTERNAL_SWAP_H_ 20 #define RAPIDJSON_INTERNAL_SWAP_H_ 22 #include "../rapidjson.h" 24 #if defined(__clang__) 26 RAPIDJSON_DIAG_OFF(c++ 98 - compat)
37 inline void Swap(T &
a, T &b) RAPIDJSON_NOEXCEPT {
46 #if defined(__clang__) 50 #endif // RAPIDJSON_INTERNAL_SWAP_H_ #define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
void Swap(T &a, T &b) RAPIDJSON_NOEXCEPT
Custom swap() to avoid dependency on C++ <algorithm> header.
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a