- This event has passed.
E42Auto01 – Use auto and decltype to let the compiler figure out types for you.
July 7, 2019 @ 12:30 pm - 1:30 pm EDTPrepaid through Classes or Patreon
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.
We recommend that you plan to join a few minutes early to give yourself time to connect. Click the Venue, Virtual GoToMeeting, for details on how to join.
This is the reservation that you can attend as many times as you want once you purchase the class session. If there’s no button below to confirm the RSVP, then this class is not yet available. Classes are usually made available a month or so in advance.