KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a C++ class with two member variables std::map<int, Node*> a; and std::set<Node*> b; A style checker used at my University requires all member variables to be initialized in the constructor of the class. How can these member variables a and b be initialized to empty in the constructor of the class they are in?
Tags (comma-separated)
Save Edits
Cancel