mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 10:04:35 +03:00
"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:
committed by
Anthony Calandra
parent
fe57c1018f
commit
af7125a698
6
CPP11.md
6
CPP11.md
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user