Avoiding Temporaries with Expression Templates

Expression templates are typically used in linear algebra and are  "structures representing a computation at compile-time, which structures are evaluated only as needed to produce efficient code for the entire computation" (https://en.wikipedia.org/wiki/Expression_templates). In other words, expression templates are only evaluated when needed. 

Read more
Views: 4262

Mixins

In my previous  post "More about Dynamic and Static Polymorphism", I used the Curiously Recurring Template Pattern (CRTP) to implement static polymorphism. Another typical use case for CRTP are mixins.

Read more
Views: 10625

Help for the People in Ukraine

Get my 3-books bundle Modern C++ Collection for half the price ($66 -> $33).

Read more
Views: 3275

The Launch of my Mentoring Program "Fundamentals for C++ Professionals"

I have prepared my mentoring program and am ready to start on 22nd April.

Read more
Views: 2364

More about Dynamic and Static Polymorphism

In my last post "Dynamic and Static Polymorphism", I introduced dynamic polymorphism. Today, I continue with static polymorphism and present are very interesting idiom in C++: curiously recurring template pattern (CRTP).

Read more
Views: 15133

More About Me

Do you want to participate in my mentoring program "Fundamentals for C++ Professionals"? Of course, you want to read more about me on my mentoring page: About Rainer Grimm.

 

 

Views: 2075

Dynamic and Static Polymorphism

Polymorphism is the property that different types support the same interface. In C++, we distinguish between dynamic polymorphism and static polymorphism.

Read more
Views: 22673

constexpr if

In today's post, I want to introduce a very interesting C++17 feature: constexpr if. constexpr if enables it to conditionally compile source code and can also be used for nice tricks at compile time.

Read more
Views: 8412

More Information about my Mentoring Program "Fundamentals for C++ Professionals"

One month ago, I presented "My Mentoring Program "Fundamentals for C++ Professionals". I'm overwhelmed by how my people want to participate in this first iteration of my mentoring program. What should I say? Today, I want to give you more details.

Read more
Views: 3469

constexpr and consteval Functions in C++20

With C++20, constexpr became way more powerful. Additionally, we have  consteval functions in C++20 that are quite similar to constexpr functions.

Read more
Views: 9461

Mentoring

English Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Interactive Course: The All-in-One Guide to C++20

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 320

Yesterday 4232

Week 320

Month 11249

All 10354556

Currently are 147 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments