MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / Add

Function Add

01.01-variadicTemplateSum2/main.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19template<typename... Args>
20std::enable_if_t<are_same_v<Args...>, first_arg_t<Args...>>
21Add(const Args&... args) noexcept
22{
23 return (... + args);
24}
25
26#ifdef WILL_NOT_COMPILE
27void WillNotCompile()

Callers 2

WillNotCompileFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected