Closed Andyson007 closed 1 year ago
from std::accumulate ```cpp template<class InputIt, class T> constexpr // since C++20 T accumulate(InputIt first, InputIt last, T init) { for (; first != last; ++first) init = std::move(init) + *first; // std::move since C++20
return init;
(This is a raw copy) The ```cpp shouldn't be visible
That's the expected behavior if you're previewing the raw markdown, it's there to provide context for syntax highlighting.
from std::accumulate ```cpp template<class InputIt, class T> constexpr // since C++20 T accumulate(InputIt first, InputIt last, T init) { for (; first != last; ++first) init = std::move(init) + *first; // std::move since C++20
(This is a raw copy) The ```cpp shouldn't be visible