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定义别名?