Код: Выделить всё
#include
#include
template struct is_array : std::false_type {};
template struct is_array : std::true_type {};
template
std::enable_if_t
do_something_prob(T&& arr, typename T::value_type mul) // `arr` becomes an rvalue?
{
for (auto && v : arr)
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78368151/function-template-correct-definition-for-forward-reference-to-an-array-and-type[/url]