3#ifndef pRC_CORE_VALUE_FUNCTIONS_PRINT_H
4#define pRC_CORE_VALUE_FUNCTIONS_PRINT_H
15 constexpr auto format = []()
31 std::fprintf(stream, format,
static_cast<double>(
value()));
34 template<IsSignedInteger T>
35 static inline auto print(
T const &
value, std::FILE *stream)
37 if constexpr(IsSame<typename T::Fundamental, long long>)
39 std::fprintf(stream,
"% lld",
value());
41 else if constexpr(IsSame<typename T::Fundamental, long>)
43 std::fprintf(stream,
"% ld",
value());
47 std::fprintf(stream,
"% d",
value());
51 template<IsUn
signedInteger T>
52 static inline auto print(
T const &
value, std::FILE *stream)
54 if constexpr(IsSame<typename T::Fundamental, unsigned long long>)
56 std::fprintf(stream,
"%llu",
value());
58 else if constexpr(IsSame<typename T::Fundamental, unsigned long>)
60 std::fprintf(stream,
"%lu",
value());
64 std::fprintf(stream,
"%u",
value());
int value
Definition gmock-actions_test.cc:1714
Definition cholesky.hpp:10
static auto print(String< N > const &string, std::FILE *stream)
Definition print.hpp:18