When trying to contact the members of the attached class through the point or “- & gt;” Intellisense does not give prompts. The project works, but the name of the members has to be prescribed manually, without tips. Tell me how to fix, please!
template & lt; TypeName T, TypeName K & GT;
Class RBST.
{
Private:
STRUCT NODE {
Public:
T Value;
K Key;
Node * left = nullptr;
Node * Right = nullPTR;
Node * Parent = nullptr;
int subtrees_quantity = 0;
} * Head = nullptr;
Public:
Void Add (Const T, Const K);
};
TEMPLATE & LT; TYPENAME T, TYPENAME K & GT;
Void RBST & LT; T, K & GT; :: Add (Const T Value, Const K Key)
{
if (Head == nullptr) {
Head = new node ();
HEAD- & GT;
}
}
Answer 1, Authority 100%
You should specify IntelliSense trial parameters for the template (in a toolbarc with & lt; T & GT;
There is a drop-down list with the list of instance, and on the right there is a button to edit to indicate arbitrary parameters).