mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix initializer list example
This commit is contained in:
parent
3acba2ebae
commit
6a39a88bf8
|
@ -18865,11 +18865,11 @@ It is common to need an initial set of elements.
|
||||||
|
|
||||||
template<typename T> class Vector {
|
template<typename T> class Vector {
|
||||||
public:
|
public:
|
||||||
vector<std::initializer_list<T>>;
|
Vector(std::initializer_list<T>);
|
||||||
// ...
|
// ...
|
||||||
};
|
};
|
||||||
|
|
||||||
Vector<string> vs = { "Nygaard", "Ritchie" };
|
Vector<string> vs { "Nygaard", "Ritchie" };
|
||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user