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

Function Add

01.05-variadicTemplateSum3/main.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12// #A Requires-clause using are_same_v to ensure all Args are of the same type.
13requires are_same_v<Args...>
14auto Add(Args&&... args) noexcept
15{
16 return (... + args);
17}
18
19
20

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected