Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
Catch::StringMaker< T, typename > Struct Template Reference

#include <catch.hpp>

Static Public Member Functions

template<typename Fake = T>
static std::enable_if<::Catch::Detail::IsStreamInsertable< Fake >::value, std::string >::type convert (const Fake &value)
 
template<typename Fake = T>
static std::enable_if<!::Catch::Detail::IsStreamInsertable< Fake >::value, std::string >::type convert (const Fake &value)
 

Detailed Description

template<typename T, typename = void>
struct Catch::StringMaker< T, typename >

Definition at line 926 of file catch.hpp.

Member Function Documentation

template<typename T , typename = void>
template<typename Fake = T>
static std::enable_if<::Catch::Detail::IsStreamInsertable<Fake>::value, std::string>::type Catch::StringMaker< T, typename >::convert ( const Fake &  value)
inlinestatic

Definition at line 930 of file catch.hpp.

References Catch::ReusableStringStream::str(), and Catch::Generators::value().

Referenced by Catch::Detail::rangeToString().

930  {
931  ReusableStringStream rss;
932  // NB: call using the function-like syntax to avoid ambiguity with
933  // user-defined templated operator<< under clang.
934  rss.operator<<(value);
935  return rss.str();
936  }
auto value(T const &val) -> Generator< T >
Definition: catch.hpp:3177
template<typename T , typename = void>
template<typename Fake = T>
static std::enable_if<!::Catch::Detail::IsStreamInsertable<Fake>::value, std::string>::type Catch::StringMaker< T, typename >::convert ( const Fake &  value)
inlinestatic

Definition at line 941 of file catch.hpp.

References Catch::Detail::convertUnstreamable().

941  {
942 #if !defined(CATCH_CONFIG_FALLBACK_STRINGIFIER)
944 #else
945  return CATCH_CONFIG_FALLBACK_STRINGIFIER(value);
946 #endif
947  }
std::enable_if< !std::is_enum< T >::value &&!std::is_base_of< std::exception, T >::value, std::string >::type convertUnstreamable(T const &)
Definition: catch.hpp:893
auto value(T const &val) -> Generator< T >
Definition: catch.hpp:3177

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