 
      
    | You are here | hackingcpp.com | ||
| | | | | aras-p.info | |
| | | | | ||
| | | | | www.nayuki.io | |
| | | | | ||
| | | | | www.cppstories.com | |
| | | | | In C++11, we got a handy way to initialize various containers. Rather than using push_back() or insert() several times, you can leverage a single constructor by taking an initializer list. For example, with a vector of strings, you can write: std::vector vec { "abc", "xyz", "***" }; We can also write expressions like: for (auto x : {1, 2, 3}) cout << x << ", "; The above code samples use std::initializer_list and (some compiler support) to hold the values and pass them around. Let's understa...... | |
| | | | | dailytechvideo.com | |
| | | Thanks for coming to visit Daily Tech Video! I'm afraid that my other duties have made it impossible for me to keep doing DTV. This site will remain, but it won't be updated in the near future. If you're a developer who wants a weekly dose of news, information, and tips, then subscribe to my ... Continue reading Daily Tech Video: Status update ? | ||