"Template aliases" have been renamed to "Type aliases" in CPP11.md and README.md files (#60)

* "template aliases" have been renamed to "type aliases".
This commit is contained in:
Azam Bham
2019-09-21 21:30:04 +01:00
committed by Anthony Calandra
parent fe57c1018f
commit af7125a698
2 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ C++11 includes the following new language features:
- [auto](#auto)
- [lambda expressions](#lambda-expressions)
- [decltype](#decltype)
- [template aliases](#template-aliases)
- [type aliases](#type-aliases)
- [nullptr](#nullptr)
- [strongly-typed enums](#strongly-typed-enums)
- [attributes](#attributes)
@@ -243,8 +243,8 @@ add(1, 2.0); // `decltype(x + y)` => `decltype(3.0)` => `double`
See also: `decltype(auto)` (C++14).
### Template aliases
Semantically similar to using a `typedef` however, template aliases with `using` are easier to read and are compatible with templates.
### Type aliases
Semantically similar to using a `typedef` however, type aliases with `using` are easier to read and are compatible with templates.
```c++
template <typename T>
using Vec = std::vector<T>;