Home c++ IntelliSense in VisualStudio 2019 does not see members of the embedded class...

IntelliSense in VisualStudio 2019 does not see members of the embedded class template

Author

Date

Category

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).

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions