4min chapter

Lex Fridman Podcast cover image

Bjarne Stroustrup: C++

Lex Fridman Podcast

CHAPTER

Object-Oriented Programming in C++

With templates, there's all kinds of magic going on. You can start doing this kind of meta programming also. If you have many template parameters, you can actually combine code that the compiler couldn't usually see at the same time. That is faster than if you had handwritten the stuff,. unless you were very, very clever. Now, all-superimiturization. The idea is that you only use virtual functions if you actually need the flexibility. It's not zero overhead, but it's zero overhead compared to any other way of achieving the flexibility.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode