cpp-reflect
C++ Reflection and Annotations Library
Loading...
Searching...
No Matches
refl::serializer< Format > Struct Template Referenceexport

Public Types

template<typename O>
using args_t = typename Format<O>::args_t
 

Static Public Member Functions

static std::string to_string (const auto &obj, const args_t< std::stringstream > &args={})
 
template<typename O>
static void to_stream (O &out, const auto &obj, const args_t< O > &args={})
 

Detailed Description

template<template< typename > typename Format = formats::default_fmt>
struct refl::serializer< Format >

Definition at line 22 of file serializer.cppm.

Member Function Documentation

◆ to_stream()

template<template< typename > typename Format = formats::default_fmt>
template<typename O>
static void refl::serializer< Format >::to_stream ( O & out,
const auto & obj,
const args_t< O > & args = {} )
inlinestaticexport

Definition at line 34 of file serializer.cppm.

◆ to_string()

template<template< typename > typename Format = formats::default_fmt>
static std::string refl::serializer< Format >::to_string ( const auto & obj,
const args_t< std::stringstream > & args = {} )
inlinestaticexport

Definition at line 26 of file serializer.cppm.


The documentation for this struct was generated from the following file: