|
You are here |
eyakubovich.github.io | ||
| | | | |
www.bfilipek.com
|
|
| | | | | Variadic Templates from C++11 is probably not a feature that you use on a daily basis. But recently, I've come across one refactoring example where I've decided to give a try and apply variadics. Intro When I was doing some work in some old UI code I've noticed several similar lines of code that looked like that: | |
| | | | |
studiofreya.org
|
|
| | | | | [AI summary] A C++11 variadic template example demonstrating perfect forwarding to wrap constructor calls for a structure. | |
| | | | |
cppstories.com
|
|
| | | | | Let's say we have the following code: LegacyList* pMyList = new LegacyList(); ... pMyList->ReleaseElements(); delete pMyList; In order to fully delete an object we need to do some additional action. How to make it more C++11? How to use unique_ptr or shared_ptr here? Intro We all know that smart pointers are really nice things and we should be using them instead of raw new and delete. | |
| | | | |
akrzemi1.wordpress.com
|
|
| | | What is the difference between a concept and a type trait? Note that you can create a type trait using a requires-expression: You can also constrain a template with a type trait using a requires-clause: There are differences though. Some are in the language, some in the tools, and one is human communication. Concepts for... | ||