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