'How to "overload" templated alias declaration in C++?

I want to create a type alias array_t. It should work for both bounded and unbounded arrays. I can declare it for each case separately like this:

// Type of an unbounded array of `T`
template <typename T>
using array_t = T[];
// Type of an array of `T` of size `Size`
template <typename T, size_t Size>
using array_t = T[Size];

The problem is that both cannot be declared at the same time. I think that the solution could be to use some kind of template specialization, but I am not sure how to use it in this case.



Solution 1:[1]

for i in range(int(amount)):
    driver.execute_script("window.open('');")

If you would like "amount" of tabs just do this.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Arundeep Chohan