I want to declare template inside a class
.h file
# include<stdio.h>
# include<iostream>
using namespace std;
#pragma once
template <typename T>
class LeafNode
{
T records;
LeafNode* next;
int size;
public:
LeafNode(void);
~LeafNode(void);
};
.cpp file
#include "LeafNode.h"
template <typename T>
LeafNode::LeafNode(void)
{
}
template <typename T>
LeafNode::~LeafNode(void)
{
}
I need any help, people.