Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeaye/value-category-cheatsheet
A C++14 cheat-sheet on lvalues, rvalues, xvalues, and more
https://github.com/jeaye/value-category-cheatsheet
Last synced: 18 days ago
JSON representation
A C++14 cheat-sheet on lvalues, rvalues, xvalues, and more
- Host: GitHub
- URL: https://github.com/jeaye/value-category-cheatsheet
- Owner: jeaye
- License: other
- Created: 2016-12-22T02:03:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-20T18:34:31.000Z (over 1 year ago)
- Last Synced: 2024-10-11T23:50:22.561Z (about 1 month ago)
- Language: Clojure
- Homepage:
- Size: 363 KB
- Stars: 404
- Watchers: 16
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++14 value category cheatsheet
Herein lies a generated PDF which outlines the common pitfalls and edge cases
with C++14's lvalues, rvalues, and the like. The cheatsheet is generated by
running an HTTP server using [Clojure](https://clojure.org/) and
[Ring](https://github.com/ring-clojure/ring) and then converting the produced
web page to a PDF using [wkhtmltopdf](https://wkhtmltopdf.org/).This project accompanied a talk I presented, in hopes of conveying the
intricacies of everyday C++ work.## Viewing online
There is a rendered version of this cheatsheet available in this repo. You can
view it online here: https://raw.githubusercontent.com/jeaye/value-category-cheatsheet/master/value-category-cheatsheet.pdf## Running locally
```bash
# Assuming leiningen is installed
$ lein ring server
```## Some of these rules change in C++17, why not use them?
This cheatsheet is meant to be a practical reference for the everyday C++ dev
working in existing codebases. Since C++17 is not yet published, and codebases
are much more likely to be using the C++11 and C++14 rulesets, I've focused on
C++14.