List: Added void operator=(std::initializer_list<T>)

This commit is contained in:
Henry Weller
2016-08-09 20:36:32 +01:00
parent 45a480709f
commit 5602c48426
4 changed files with 147 additions and 104 deletions

View File

@ -100,6 +100,14 @@ int main(int argc, char *argv[])
{8, 1, 0}
};
Info<< "list5: " << list5 << endl;
list5 =
{
{8, 1, 0},
{5, 3, 1},
{10, 2, 2}
};
Info<< "list5: " << list5 << endl;
list4.swap(list5);
Info<< "Swapped via the swap() method" << endl;