C++ value category cheat-sheet [pdf]
github.com
C++ value category cheat-sheet [pdf]
1–10 of 41 posts
Re: C++ value category cheat-sheet [pdf]
#2Re: C++ value category cheat-sheet [pdf]
#3a) markdown with embedded graphviz.
ex: https://github.com/TLmaK0/gravizo
b) a jupyter notebook (which also uses markdown blocks). jupyter can embed C++, so you can have interactive blocks that you can evaluate and play with.
ex: https://github.com/minrk/clingkernel/blob/master/cling.ipynb
Both seem more performant than in-browser PDF rendering.
Re: C++ value category cheat-sheet [pdf]
#4It is great, but regarding the format I would suggest some options to PDF: a) markdown with embedded graphviz. ex: https://github.com/TLmaK0/gravizo b) a jupyter notebook (which also uses markdown blocks). jupyter can embed C++, so you can have interactive blocks that you can evaluate and play with. ex: https://github.com/minrk/clingkernel/blob/master/cling.ipynb Both seem more performant than in-browser PDF renderin…
Thanks for the suggestions.
Re: C++ value category cheat-sheet [pdf]
#5Another drawback of colored backgrounds is that readers wanting to print out the pdf will consume ink/toner to render the non-white background.
Re: C++ value category cheat-sheet [pdf]
#6It is great, but regarding the format I would suggest some options to PDF: a) markdown with embedded graphviz. ex: https://github.com/TLmaK0/gravizo b) a jupyter notebook (which also uses markdown blocks). jupyter can embed C++, so you can have interactive blocks that you can evaluate and play with. ex: https://github.com/minrk/clingkernel/blob/master/cling.ipynb Both seem more performant than in-browser PDF renderin…
I looked for a number of options and I didn't find anything which could provide me with automatic syntax highlighting, non-html layouts, and quick iteration. That doesn't mean that such a thing doesn't exist! Thanks for the suggestions.
Re: C++ value category cheat-sheet [pdf]
#7Re: C++ value category cheat-sheet [pdf]
#8Reddit discussion: https://www.reddit.com/r/cpp/comments/5zzurr/c_value_categor...
https://www.reddit.com/r/cpp/comments/5zzurr/c_value_categor...
int const &f(int const &a) { return a; }
int r = f(3);
Is the value of r implementation-defined according to the standard?Re: C++ value category cheat-sheet [pdf]
#9e.g.
std::string_view sv{ "lvalue" };
or auto sv{ "lvalue"sv };Re: C++ value category cheat-sheet [pdf]
#10Question: it is ok to initialize a string_view from a string literal, right? e.g. std::string_view sv{ "lvalue" }; or auto sv{ "lvalue"sv };