Skip to content

Function csum

function csum(cvals_t<T>) meta

template <typename T>
constexpr KFR_INTRINSIC T csum(cvals_t<T> = cvals_t<T>()) noexcept { … }

Returns the sum of all values in the list (0 for an empty list)

Fully qualified name: kfr::csum(cvals_t<T>)

Declared at meta.hpp:405

Function csum

function csum(cvals_t<T, first, rest...>) meta

template <typename T, T first, T... rest>
constexpr KFR_INTRINSIC T csum(cvals_t<T, first, rest...> = cvals_t<T, first, rest...>()) noexcept { … }

Returns the sum of all values in the list

Template parameters
T element type
first first value
rest remaining values

Fully qualified name: kfr::csum(cvals_t<T, first, rest...>)

Declared at meta.hpp:415

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.