$darkmode
memory.hpp File Reference
#include <memory>
#include <nlohmann/json.hpp>
Include dependency graph for memory.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nlohmann::adl_serializer< std::unique_ptr< T > >
 
struct  nlohmann::adl_serializer< std::shared_ptr< T > >
 
struct  nlohmann::adl_serializer< std::weak_ptr< T > >
 

Detailed Description

This file contains specializations of nlohmann::adl_serializer for std types in order to provide serialization for third-party types.

This file contains specializations of nlohmann::adl_serializer for std types.

In order to provide serialization for third-party types, we need to either use their namespace or provide a specialization in that of nlohmann. It is illegal to define anything in the std namespace, so we are left no choice in this regard.

See: https://github.com/nlohmann/json