Loading Events

« All Events

Use auto and decltype to let the compiler figure out types for you – 2019-05-05

May 5, 2019 @ 12:30 pm - 1:30 pm EDT


Sometimes letting the compiler decide on the proper type is the best way to write your code. And sometimes you can set yourself up for surprises. Programming is not a good place for surprises.

This class will show you how to use the auto type properly in your code as well as how to get declared types with decltype:

  • Why auto and decltype are needed.
  • When to use them and when to avoid them.
  • How to use auto by itself.
  • How to use auto with iterators. Including how to get constant iterators.
  • How to use auto with function pointers.
  • How to use auto with const and with references.
  • How to use decltype but itself.
  • And how to use decltype together with auto.

This is an online class that you can attend from anywhere. All you need is a good internet connection and your computer. It will help if you have a large monitor or even two monitors so that you can watch and follow along at the same time. Headphones or earbuds with a microphone are recommended to avoid echos.

This is a live class where you can ask questions if you like. Or you can listen and learn and follow along without asking anything if that makes you more comfortable.


May 5, 2019
12:30 pm - 1:30 pm
Event Category:


Wahid Tanner


25 available
Standard$25.00This ticket allows you to join the class through GoToMeeting. Click the Venue: Virtual GoToMeeting for details on how to join. It's recommended that you plan to join a few minutes early to give yourself time to connect.

What's on your mind?
On a scale of 0 to 10, how likely are you to refer us to friends?