Celeritas 0.7.0-dev.529+develop.b0df1df8d
Loading...
Searching...
No Matches
Classes | Functions
StreamUtils.hh File Reference
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>

Classes

struct  celeritas::GenericToStream
 Write the operand to the contained stream. More...
 

Functions

template<class T >
std::string celeritas::stream_to_string (T const &item)
 Return as a string any object that has an ostream operator.
 
template<class T >
auto celeritas::operator<< (std::ostream &os, T value) -> std::enable_if_t< std::is_enum_v< T > &&std::is_same_v< decltype(to_cstring(value)), char const * >, std::ostream & >
 Write a to_cstring-enabled enum to a stream.