type-traits

Type-Traits: Performance Matters

If you look carefully, you see, type-traits have a big optimization potential. The type-traits support it in the first step to analyse the code at the compile time and in the second step, to optimize the code based on that analysis. How is that possible? Dependent on the type of a variable a faster variant of an algorithm will be chosen.

Read more
Add CommentViews: 2665

Compare and Modify Types

The type-traits library empowers you to compare and modify types. All is done at compile time therefore there is no performance penalty.

Read more
Comments 2Views: 3410

Check Types

Template Metaprogramming is programming at compile time. But what has template metaprogramming in common with the type-traits library? A lot! The type-traits library is pure template metaprogramming, tamed in a library. With this post my presentation of the type-traits library becomes more structured.

Read more
Comments 1Views: 2487

More and More Save

In the post Statically checked I wrote that the functions of the type-traits library are an ideal fit for static_assert. The reason is that static_assert requires a constant expression. The functions of the type-traits library provides a lot of checks which can be performed at compile time. With this posts I will prove my statement.

Read more
Comments 1Views: 2168

My Newest E-Book

Latest comments

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 424

All 252655

Currently are 202 guests and no members online