Which of the following syntax is used to convert any variable to its original type?
(a) any_cast<variable_name>();
(b) any_cast(variable_name);
(c) <original_type>(variable_name);
(d) any_cast<original_type>(variable_name);
This question was addressed to me during an interview for a job.
My question is based upon STL Container Any topic in chapter Class Hierarchies, Library & Containers of C++