Auto generate readme (#100)

* Auto generate readme provided by @KinglittleQ
This commit is contained in:
Chengqi Deng
2021-12-04 07:48:04 +08:00
committed by GitHub
parent c72f2796c0
commit 1343f5eeef
8 changed files with 168 additions and 24 deletions

View File

@@ -122,7 +122,7 @@ static_assert(std::is_same<int, decltype(f(x))>::value == 1);
static_assert(std::is_same<const int&, decltype(g(x))>::value == 1);
```
See also: `decltype` (C++11).
See also: [`decltype (C++11)`](README.md#decltype).
### Relaxing constraints on constexpr functions
In C++11, `constexpr` function bodies could only contain a very limited set of syntaxes, including (but not limited to): `typedef`s, `using`s, and a single `return` statement. In C++14, the set of allowable syntaxes expands greatly to include the most common syntax such as `if` statements, multiple `return`s, loops, etc.
@@ -198,7 +198,7 @@ The compiler is free to call `new T{}`, then `function_that_throws()`, and so on
foo(std::make_unique<T>(), function_that_throws(), std::make_unique<T>());
```
See the C++11 section on smart pointers for more information on `std::unique_ptr` and `std::shared_ptr`.
See the section on [smart pointers (C++11)](README.md#smart-pointers) for more information on `std::unique_ptr` and `std::shared_ptr`.
## Acknowledgements
* [cppreference](http://en.cppreference.com/w/cpp) - especially useful for finding examples and documentation of new library features.