Skip to content

Marius Bancila's Blog

About code. Mostly on C++

  • Home
  • About me
  • Works
  • Privacy Policy

Day: September 10, 2019

Let there be constants!

May 8, 2020September 10, 2019 by Marius Bancila

In the beginning, there was const. And people saw that const was good. And then the people said: let there be constexpr, and consteval, and constinit. And thus, starts this article about constant functions and variables in C++20, which I will try to keep short and concise.

Categories C++ Tags C++, c++20, const, consteval, constexpr, constinit 7 Comments

About me

Find me on:

Archives

September 2019
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May   Oct »

Follow me on Twitter

My Tweets

Recent Posts

  • The C++26 inplace_vector container
  • Composite objects and C++26 the std::polymorphic type
  • cppdashboard.dev – The aggregator of what matters in C++ right now
  • The PImpl idiom and the C++26 std::indirect type
  • Improvements to std::format in C++26
  • Multiplying matrices in C++
  • Universally Unique Lexicographically Sortable Identifiers (ULIDs)
  • Time-based Universally Unique Identifiers (UUIDs v7)
  • What is the C++ nth_element algorithm?
  • What’s new in C++26: contracts (part 3)

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2026 Marius Bancila's Blog • Built with GeneratePress