MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / fold_minus_impl_rf

Function fold_minus_impl_rf

tests/VariadicTemplateRightFoldPlusTest.cpp:4–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3template<int... Ints>
4constexpr int fold_minus_impl_rf() {
5 return ( 5 - ... - Ints);
6}
7
8static_assert(fold_minus_impl_rf<0>() == 5);
9static_assert(fold_minus_impl_rf<0,1>() == 4);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected