I was wondering why we use #define with a TMap instead of using.
That is,
#define TMap std::map
instead of,
using TMap = std::map
By “we would have to get involved with parameters”, what do you mean? I read in a discussion (https://stackoverflow.com/questions/36518029/proper-way-to-define-type-typedef-vs-define) that using #define can be a bad idea and we should avoid using pre-processor directives as much as possible.
On that note, why don’t we use a typedef instead of using or #define?
That is,
typedef std::map TMap