The Daily C++ via @vote
What is your relationship with C++?
anonymous poll
Student β 166
πππππππ 42%
Learning β 107
πππππ 27%
Full Time Job β 76
πππ 19%
Part Time Job β 26
π 7%
Other β 20
π 5%
π₯ 395 people voted so far.
anonymous poll
Student β 166
πππππππ 42%
Learning β 107
πππππ 27%
Full Time Job β 76
πππ 19%
Part Time Job β 26
π 7%
Other β 20
π 5%
π₯ 395 people voted so far.
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.