C++ Team Blog

The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team

Video Introduction to the STL, Part 4

In the fourth part of my video lecture series introducing the Standard Template Library, I walk through an extended example of using the STL to solve Nurikabe puzzles.  It assumes that you've read Wikipedia's Nurikabe page, and that you've watched Part 1 (sequence containers), Part 2 (associative containers), and Part 3 (smart pointers), ...

Video Introduction to the STL, Part 3

The third part of my video lecture series introducing the Standard Template Library is now available, following Part 1 and Part 2.  Part 3 covers unique_ptr, shared_ptr, and exception handling (briefly).  It explains my solution to the container erasure problem, and presents a significantly larger homework problem: writing a Nurikabe...

The Filterator

My name is Ahmed Charles and I currently work on Windows Error Reporting.  I believe that this is the first time that someone not on the VC team has written a blog, but I hope you will find it useful anyways.  I’d like to thank Stephan T. Lavavej for the idea and valuable feedback while writing it.  And we both owe the ...

Video Introduction to the STL, Part 2

The second part of my video lecture series introducing the Standard Template Library is now available.  This part covers the STL's associative containers and the erase-remove idiom.  It assumes that you've watched Part 1. More parts are on their way!  Let me know in the comments what you'd like to see. Stephan T. ...

Video Introduction to the STL, Part 1

I recently recorded the first part of a video lecture series introducing the Standard Template Library.  It assumes familiarity with C++, but begins with the STL basically from scratch.  Channel 9 hooked up my laptop so I could write, compile, and execute code as I went along.  Check it out here: https://channel9.msdn.com/shows/...

VC++ Developer Survey

As we wrap up Visual Studio 2010, we are starting to plan the next release of Visual C++. Our goal is to make Visual C++ a product that meets your needs. Thus we need your help.  We would like to better understand what you do. Please take a few minutes and answer the survey below. The survey is totally anonymous and the data that you ...

The Mallocator

A common question from programmers who have an intermediate amount of experience with using the STL is, "How do I write an STL allocator?".  Writing an STL allocator is not especially difficult - only two member functions are interesting, allocate() and deallocate().  However, STL allocators must satisfy a number of other ...