Tags: #bool #ternary #stackoverflow
https://stackoverflow.com/questions/43139144/why-is-the-ternary-operator-used-to-define-1-and-0-in-a-macro
https://stackoverflow.com/questions/43139144/why-is-the-ternary-operator-used-to-define-1-and-0-in-a-macro
Stackoverflow
Why is the ternary operator used to define 1 and 0 in a macro?
I'm using an SDK for an embedded project. In this source code I found some code which at least I found peculiar. In many places in the SDK there is source code in this format:
#define ATCI_IS_LOWER(
#define ATCI_IS_LOWER(
Tags: #metaprogramming #design #patterns
https://odinthenerd.blogspot.it/2017/03/tradeoffs-of-tmp-mpl-design.html
https://odinthenerd.blogspot.it/2017/03/tradeoffs-of-tmp-mpl-design.html
odinthenerd.blogspot.co.uk
Tradeoffs of TMP MPL design
I would like to take a break from my design patterns series to talk about some of the tradeoffs when designing a template metaprogramming li...
Tags: #code #example
https://www.techiedelight.com/find-pairs-given-difference-k-array-constant-space-solution/
https://www.techiedelight.com/find-pairs-given-difference-k-array-constant-space-solution/
Techie Delight
Find pairs with difference `k` in an array | Constant Space Solution | Techie Delight
Given an unsorted integer array, find all pairs with a given difference `k` in it without using any extra space.