persistent-cache-cpp
|
#include <core/cache_codec.h>
Static Public Member Functions | |
static std::string | encode (T const &value) |
Converts a value of custom type T into a string. | |
static T | decode (std::string const &s) |
Converts a string into a value of custom type T. | |
Traits for serialization and deserialization of cache custom types. To use custom types, specialize this template for each custom type (other than string) in the core
namespace.
std::string
! Doing so has no effect.
|
static |
Converts a string into a value of custom type T.
|
static |
Converts a value of custom type T into a string.