c++ - Making sense of arguments to a function template -
reading code base , desperately trying understand it.
template<typename selection> void run_z_p_selection(xml_config &my_config){ system::start(); std::shared_ptr<selection> = std::make_shared<selection>(my_config, machine, enable, timet); system::addselection(my); }
- (xml_config &my config){}. object being created address? don't understand.
- where (my_config, machine, enable, timet) coming if not input arguments function?
that called pass reference
it's hard tell without seeing whole code base, looks global variables. maybe
system::start()
sets them up?
Comments
Post a Comment