Moves in Returns
Mini guide to 'when is my return a move?'
Articles about Graphics, C++, Optimization, Game Development, Programming Languages, and more. Personal blog of Philip Tretter writing under the alias of Artificial Mind.
Mini guide to 'when is my return a move?'
Even without inlining, the compiler does not always has to assume the worst case.
When is a good hash a good hash?
Sorting a range of keys while keeping a range of values in sync.
Forcing compile time evaluation in C++17
'if constexpr' is awesome, but can we do 'constexpr for'?
Ever wanted to break more than one level at once?
A fast, lightweight, non-owning view of a range
Central registration of types or functions just doesn't feel very DRY sometimes.
Everyone overloads by argument types. But can you do return type?
The working version of static_assert(false);
Reducing API friction by a seemingly useless typedef
How can we make ASSERT(a == b) print the values of a and b?
Ever wondered how to make our beloved [](){}s call themselves?
Ever wondered what is slowing down your C++ builds?
Harder than it should be.
Why is foo{} = foo{} working anyways?
How bad is it really?
Why is "f + 0.0" slower than "f - 0.0"?
Or: how to make "foo(0)" and "foo(1)" call different functions
Welcome to my blog!