-
Does exist a function that takes a key and a value and return the content of the key into the value? Would be something like this:
but receiving the placeholder directly, so you dont have to specify the type to which is converted
If key doesn't exist, could leave the result as it is or return the return of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is one that does the "so you dont have to specify the type to which is converted"
and one which does the "If key doesn't exist, could leave the result as it is or return the return of decltype(d){}"
but no combination of the two as far as I know. You could do this:
and you could probably write your own template to do that:
|
Beta Was this translation helpful? Give feedback.
There is one that does the "so you dont have to specify the type to which is converted"
and one which does the "If key doesn't exist, could leave the result as it is or return the return of decltype(d){}"
but no combination of the two as far as I know. You could do this:
and you could probably write your own template to do that: