mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fix initializer list example
This commit is contained in:
@@ -18865,11 +18865,11 @@ It is common to need an initial set of elements.
|
||||
|
||||
template<typename T> class Vector {
|
||||
public:
|
||||
vector<std::initializer_list<T>>;
|
||||
Vector(std::initializer_list<T>);
|
||||
// ...
|
||||
};
|
||||
|
||||
Vector<string> vs = { "Nygaard", "Ritchie" };
|
||||
Vector<string> vs { "Nygaard", "Ritchie" };
|
||||
|
||||
##### Enforcement
|
||||
|
||||
|
||||
Reference in New Issue
Block a user