Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
13
requires are_same_v<Args...>
14
auto Add(Args&&... args) noexcept
15
{
16
return (... + args);
17
}
18
19
20
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected