خرید بک لینک

Vote count: -3

Is it possible to have a function with a variadic number of non-template-type parameters?

For example, a function that takes an arbitrary number of strings

std::string concat_all() { retu ""; }

std::string concat_all(std::string const& s,
                       std::string const&... t) // won't compile
{
    retu s + concat_all(t...);
}

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 1 مرداد 1395 ساعت: 8:59

صفحه بندی