Celeritas  0.5.0-56+6b053cd
Classes | Functions
StreamableVariant.hh File Reference
#include <ostream>
#include <sstream>
#include <variant>
#include "corecel/Assert.hh"
This graph shows which files directly or indirectly include this file:

Classes

struct  celeritas::StreamableVariant< T >
 Helper class to print a variant to a stream. More...
 
struct  celeritas::detail::GenericToStream
 

Functions

template<class T >
 celeritas::StreamableVariant (T &&) -> StreamableVariant< T >
 
template<class T >
std::ostream & celeritas::operator<< (std::ostream &os, StreamableVariant< T > const &svar)
 Write a variant object's value to a stream.
 
template<class T >
std::string celeritas::to_string (StreamableVariant< T > const &svar)
 Save a variant object's value to a string.