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

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -