Quantcast
Channel: pseudorandom noise
Browsing all 21 articles
Browse latest View live

Using The C++ Placement New Operator

Overview Using C++11′s rvalue references, it is an interesting exercise to see how such can be used with placement new and the new alignas() functionality. This post implements a class that has the...

View Article



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 Article

An 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 Article

Applying 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 Article

Applying 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 Article


Applying 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 Article

C++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 Article

References 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 Article


apply_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 Article


A 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 Article

Using The C++ Placement New Operator

Overview Using C++11′s rvalue references, it is an interesting exercise to see how such can be used with placement new and the new alignas() functionality. This post implements a class that has the...

View Article

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 Article

An 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 Article


Applying 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 Article

Applying 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 Article


Applying 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 Article

C++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 Article


References 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 Article

apply_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 Article

A 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 Article
Browsing all 21 articles
Browse latest View live




Latest Images