Skip to content

Gaudel's Miscellany

  • Home
  • About

Posts filed under “cpp”


The access-by idiom in C++

20 April 2022
  • programming

Useful to unit-test private methods for when you have no better way.

Fast RTTI in C++ for a class hierarchy

28 April 2022
  • programming

An example that shows compile time type id generation for a performant runtime type inference.

Cartesian for-each at runtime

15 November 2022
  • programming

Useful when the number of arguments to a carteisan product is determined at runtime.

Generating lexicographic permutations with parity

13 May 2023
  • programming

For a totally-ordered set, lexicographically first and last sequences made of its elements can be defined. Every sequence is either an odd or an even number of element transpositions from the first sequence. How to keep track of the parity (even/odd)-ness of all permutations?

  • cpp
  • design
  • algorithm
  • programming

Theme

Follow me on:

  • GitHub

© Bimal Gaudel