When I reading code in project of my interest, I come across the function in struct without function name, and maybe it is not the lambda expression capture->return-type{body} either, i just donnot know what kind of this function is?
// file.cc
struct AppSettings
{
std::string mesh_name;
std::size_t num_threads;
AppSettings (void)
{
num_threads = std::thread::hardware_concurrency();
}
};
anyone knows how should i understand this function
AppSettings (void) {num_threads = std::thread::hardware_concurrency();}
?