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);  } 
  1. (xml_config &my config){}. object being created address? don't understand.
  2. where (my_config, machine, enable, timet) coming if not input arguments function?

  1. that called pass reference

  2. it's hard tell without seeing whole code base, looks global variables. maybe system::start() sets them up?


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -