MCPcopy Create free account
hub / github.com/pybind/pybind11 / constexpr_sum

Function constexpr_sum

include/pybind11/detail/common.h:922–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

920#ifdef __cpp_fold_expressions
921template <typename... Ts>
922constexpr size_t constexpr_sum(Ts... ns) {
923 return (0 + ... + size_t{ns});
924}
925#else
926constexpr size_t constexpr_sum() { return 0; }
927template <typename T, typename... Ts>

Callers 6

initializeMethod · 0.85
class_Method · 0.85
class_Class · 0.85
vectorize_helperClass · 0.85
attr.hFile · 0.85
exactly_oneClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected