OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Namespaces | Variables
Serialization.h File Reference
#include <string>
#include <string_view>
#include "SerializationFwd.h"
#include "StandardSerialization.h"

Classes

struct  detail::StringSerializer
 
struct  detail::StringDeserializer< T >
 

Namespaces

namespace  detail
 

Variables

constexpr detail::StringSerializer toString
 
template<class T >
constexpr detail::StringDeserializer< T > fromString
 

Variable Documentation

◆ fromString

template<class T >
constexpr detail::StringDeserializer<T> fromString
constexpr

Ranges-friendly deserialization object.

Can be used as range | std::views::transform(fromString<int>). Or directly, as return fromString<int>(some_string).

Under the hood it's just calling the deserialize function using argument-dependent lookup.

See also
toString

◆ toString

constexpr detail::StringSerializer toString
constexpr

Ranges-friendly serialization object.

Can be used as range | std::views::transform(toString). Or directly, as return toString(some_integer);.

Under the hood it's just calling the serialize function using argument-dependent lookup.

See also
fromString