Код: Выделить всё
template
class GraphT {
public:
typedef NodeT NodeInt;
typedef EdgeT EdgeInt;
NodeInt *addNode(NodeInt node);
};
< /code>
с реализацией, которая выглядит так: < /p>
template
NodeT* GraphT::addNode(NodeInt node)
{
////
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... definition
Мобильная версия