Project maintained by pfultz2Hosted on GitHub Pages — Theme by mattgraham
Pythy
Having it all now: Pythy syntax for C++11.
Overview
In a blog post, David Abrahams discussed an improved function syntax based around polymorphic lambdas:
CODE:
[]min(x, y)
{ return x < y ? x : y; }The pythy library implements this in C++11 using a macro like this:
CODE:
PYTHY(min, x, y)
( return x < y ? x : y; )
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/301743/viewspace-742456/
,如需转载,请注明出处,否则将追究法律责任。