第十题,假如不使用结构化绑定的可能解法 #211
AzrBrk
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
|
这段代码旨在提供一种思路,可以通过其他方法复现 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
这模板,,,太夸张了 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
注:由于使用了大量的模板递归,使用了我自己的库, 但是理论上可以用这个库写出来东西的都可模板递归, 所有的头文件都是head only, 可以在这个仓库查看, 具体可参考while_constexpr:
注:
这个方法又很多问题,比如,possibilities猜测会失败,因为没有提供所有可能的类型
没有针对不同的类型计算不同的内存对齐
...
Beta Was this translation helpful? Give feedback.
All reactions