3#ifndef pRC_CORE_VALUE_FUNCTIONS_PRINT_H
4#define pRC_CORE_VALUE_FUNCTIONS_PRINT_H
20 template<
class T, If<IsFloat<T>> = 0>
23 constexpr auto format = []()
39 std::fprintf(
stream,
format,
static_cast<double>(value()));
50 template<
class T, If<IsSignedInteger<T>> = 0>
51 static inline auto print(
T const &value, std::FILE *
stream)
55 std::fprintf(
stream,
"% lld", value());
59 std::fprintf(
stream,
"% ld", value());
63 std::fprintf(
stream,
"% d", value());
75 template<
class T, If<IsUn
signedInteger<T>> = 0>
76 static inline auto print(
T const &value, std::FILE *
stream)
80 std::fprintf(
stream,
"%llu", value());
84 std::fprintf(
stream,
"%lu", value());
88 std::fprintf(
stream,
"%u", value());
Definition cholesky.hpp:18
static auto print(String< N > const &string, std::FILE *stream)
Definition print.hpp:18
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13