코딩 테스트를 위한 자료 구조와 알고리즘 with C++ 보는데
#include <iostream>
#include <array>
#include <type_traits>
template<typename ... Args>
auto build_array(Args&&... args)->std::array<typename std::common_type
<Args...>::type, sizeof...(args)>
{
using commonType = typename std::common_type<Args...>::type;
return { std::forward<commonType>((Args&&) args)... };
}
int main() {
auto data = build_array(1, 0u, 'a', 3.2f, false);
for (auto i: data)
std::cout << i << " ";
std::cout << std::endl;
}
template<typename ... Args>
이 부분 나오는데 typename 에 ... 이거는 무슨 의미인가요?