Celeritas 0.7+c0d26b9
Loading...
Searching...
No Matches
Functions
StreamUtils.hh File Reference
#include <sstream>
#include <string>
#include <type_traits>

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.