0
template<typename T>
using MyVector = std::vector<T>;
MyVector<int> xyz;
但不是這樣的:
template <typename F>
using MyCalc = float calc1(F f) { return -1.0f * f(3.3f) + 666.0f; }
雖然
template <typename F>
float calc1(F f) { return -1.0f * f(3.3f) + 666.0f; }
是OK。有沒有辦法爲calc1定義別名?