Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Useful C++ 17 Features That You Should Learn

Useful C++ 17 Features That You Should Learn

Hello Developers, in my opinion, the C++17 standard is one of the biggest milestones in the history of C++ development. It is amazing with a lot of new features, and in this weekly round post, we have another three important features that you should learn. We explain the new optional class template, we teach you how to use alias templates for traits and we explain what std::any is and how you can use it.

Our educational LearnCPlusPlus.org site has a broad selection of new and unique posts with examples suitable for everyone from beginners to professionals alike. It is growing well thanks to you, and we have many new readers, thanks to your support! The site features a treasure-trove of posts that are great for learning the features of modern C++ compilers with very simple explanations and examples.

RAD Studio’s C++ BuilderDelphi, and their free community editions C++ Builder CE, and Delphi CE are powerful tools for modern application development.

Where I can I learn C++ and test these examples with a free C++ compiler?

If you don’t know anything about C++ or the C++ Builder IDE, don’t worry, we have a lot of great, easy to understand examples on the LearnCPlusPlus.org website and they’re all completely free. Just visit this site and copy and paste any examples there into a new Console, VCL, or FMX project, depending on the type of post. We keep adding more C and C++ posts with sample code. In today’s round-up of recent posts on LearnCPlusPlus.org, we have new articles with very simple examples that can be used with:

Read the FAQ notes on the CE license and then simply fill out the form to download C++ Builder 11 CE.

How to use modern C++ with C++ Builder?

The C++17 standard came with a lot of great features and std::optional was one of the main features of today’s modern C++. std::optional<T> is a class template that is defined in the <optional> header and represents either a T value or no value. In the first post, we explain, what is optional in modern C++ and how we can use it efficiently.

One of the great features of C++ is templates, they are parameterized by alias templates in C++11. Then, In C++14 and C++17, they improved C++11’s feature with several template aliases whose use simplifies the traits. This feature is called “Alias Templates For Traits” and in this post, we explain that it is an alias template and how we can use alias templates with traits.

Another interesting feature of C++17 was the new type std::any. std::any is a type-safe container to store a single value of any variable type. In the next post, we explain std::any in modern C++.

How to learn modern C++ for free using C++ Builder?

LearnCPlusPlus.org has been producing full of educational articles about C and modern C++ that can be used with C++ Builder, C++ Builder CE, Dev-C++, BCC Compiler and some other compilers such as the GCC compiler. Here are our post picks for today.

We like to hear your feedback. You motivate us so much with your likes and comments on social media (find us on Facebook, LinkedIn, Reddit, Twitter / X and all over) and here on the blogs too. Thank you for your valuable comments and questions. All of them help improve the quality of our future posts.

We have a lot of unique posts waiting to come. We keep adding new topics every week about C++ in general and specific topics for C++ Builder, Dev-C++, and for the other C++ compilers. Please keep following our LearnCPlusPlus.org website for the latest posts and updates. Feel free to comment and share with your colleagues, students, members – knowledge is power, and knowledge shared is empowering.

Do you want to know some news about C++ Builder 12?

A few weeks ago, David Millington, Senior Product Manager of C++ Builder, was one of the participants in the RAD Studio 12 launch webinar. RAD Studio 12 focused on many quality and stability improvements for both Delphi and C++ as well as the whole IDE. However, it also contains a number of really great improvements specifically for C++ developers including a new preview of the CLANG toolchain and the totally awesome integration of the popular Visual Assist functionality. The release webinar was one of the longest we’ve done for many years and reflects the sheer amount of new things packed into this bumper release.

Here is the full RAD Studio release webinar replay.

C++ Builder is the easiest and fastest C and C++ IDE for building everything from simple to professional applications. It is also easy for beginners to learn with its wide range of samples, tutorials, help files, and LSP support for code. RAD Studio’s C++ Builder version comes with the award-winning VCL framework for high-performance native Windows apps and the powerful FireMonkey (FMX) framework for cross-platform UIs.

Exit mobile version