template<typename T>
using creator = std::unique_ptr<T> (*)(std::vector<double> const&);
syntax for declaring templated function pointer in C++ with keyword using
-
18-10-2022 - |
Domanda
consider
template<typename T>
struct auxiliary
{
typedef std::unique_ptr<T> (*creator)(std::vector<double>const&);
};
template<typename T>
using creator = typename auxiliary<T>::creator;
I wonder how to declare creator
without auxiliary
, i.e.
template<typename T>
using creator = ???
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow