So, I know that C ++ is strongly typed, and it was just interesting if there was any library (or any thing for this fact) that would allow you to create a variable that does not have an initial concrete type like var in Python .
Take a look at boost::anyand boost::variant.
boost::any
boost::variant
Two main things come to mind:
BOOST_AUTO
++ 11 auto, , . , :
auto
auto index = 1; // index is inferred to be int auto c = 'a' // c is inferred to be a char
Source: https://habr.com/ru/post/1746716/More articles:signal processing for web programmer - computer-scienceComparing ActionScript arrays - arraysHow to tell Django about using MySql from a WAMP installation? - djangoHtml.DescriptionFor - asp.net-mvc-2Good resources / Perlin noise implementation? - noiseGNU Make - Dependencies on non-program code - cCall the website and use php to recognize caller id - phpHow to compare 2 lines in a shell? - shellSorting odd in descending and even ascending order - c ++MySQL does not properly store foreign characters - mysqlAll Articles