MCPcopy Create free account
hub / github.com/changkun/modern-cpp-tutorial / printf1

Function printf1

code/2/2.6.cpp:46–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44// 1. 递归解参数包
45template<typename T>
46void printf1(T value) {
47 std::cout << value << std::endl;
48}
49template<typename T, typename... Args>
50void printf1(T value, Args... args) {
51 std::cout << value << std::endl;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected