constexpr Dynamic Memory Allocation, C++20--Bartlomiej Filipek

Constexpr all the things.

constexpr Dynamic Memory Allocation, C++20

by Bartlomiej Filipek

From the article:

constexpr has become a major feature for compile-time programming in C++. Introduced in a simple form in C++11 evolved into almost another “sub-language”, an alternative to regular template code. In C++20 you can even use std::vector and std::string in constexpr context!

In this article, I’d like to discuss constexpr memory allocations, a building block for std::vector. Let’s see how this feature works and see its limitations...

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.