Tweaking Applying std::tuple To Functors Efficiently
Overview In previous posts I developed and tested code that could apply tuples to functions and function objects (functors) efficiently. In a reply comment to my last post, it was noted that...
View ArticleAn Enhanced Template Parameter Extender
Overview In A Template Argument Extender C++ template metaprogramming was used to repeat a single template parameter type N times. This article outlines how such can be enhanced to repeat a set of...
View ArticleApplying Tuple To Functors and Functions: The Home Stretch (Part I)
Overview This article updates my previous article on writing an efficient implementation of applying a tuple to a function using perfect forwarding. This coding endeavour and article series started...
View ArticleApplying Tuple To Functors and Functions: The Home Stretch (Part II)
Overview If you’ve been following this article series, this is the article you’ve been waiting to read! It is the one where I show the final versions of apply() and apply_tuple(). These versions have...
View ArticleApplying Tuples To Functors and Functions: The Home Stretch (Part III)
Overview I missed three things that allow the previously posted solution to require half of the functions (3 instead of 6): it is legal to return the result of an expression whose type is void() if the...
View ArticleC++11′s Move Semantics Are Not Free
Overview I was taking a break on StackOverflow and discovered this question about expression templates (ETs): I was wondering whether lambdas together with move semantics or any other new feature can...
View ArticleReferences and Pointers
Overview Reading the article Choosing Between References and Pointers in C++ and its comments have lead me to write this article in response. Briefly stated: (i) references are not pointers and (ii) I...
View Articleapply_tuple(op, t) (C++11 Final Version)
Overview It has been a long while since my last post! All of my previous posts were written at a time when GCC and Clang had various issues with C++11 and did not have various portions of C++11...
View ArticleA Simple Quine
Overview A “quine” is a computer program that accepts no input and produces a copy of its own source code [Wikipedia.org]. If one searches for quines on the Internet, one will find all kinds of...
View ArticleExploring Type Construction and Destruction
Overview I was recently asked the question, “How do I clean up primitive types?” The reference to primitive types refers to one of the built-in fundamental types in C/C++ (e.g., char, int, long,...
View Article