C++ Typedef and type aliases explained

70 Views
Published
#typedef #using

// Typedefs and type aliases
// typedef = reserved keyword used to create an additional name
// (alias) for another data type.
// New identifier for an existing type
// Helps with readability and reduces typos
// Use when there is a clear benefit
// Replaced with 'using' (work better w/ templates)
Category
Bro Code
Tags
programming, cpp, c++
Be the first to comment