My Public Notepad
Bits and bobs about computers and programming
Pages
(Move to ...)
Home
Software Engineering
Security
Data Science
Disclaimer
About
▼
Showing posts with label
STL
.
Show all posts
Showing posts with label
STL
.
Show all posts
Tuesday, 12 June 2012
Appending string to STL stringstream
›
std::stringstream constructor has two optional parameters: string that this stream will be initialized with and the buffer mode. Default mo...
Thursday, 3 May 2012
Observer pattern: from GoF implementation to events and delegates
›
Let us assume we have some class ( Subject ) with properties that can be changed. A set of current values of all properties defines Subjec...
Removing STL list elements whilst iterating through it
›
I have already written about the traps and solutions when we try to remove elements from vectors and maps whilst iterating through them. T...
Monday, 30 January 2012
Thread and process synchronisation with semaphores
›
Semaphore is a synchronisation object that controls resource access (critical section execution) by maintaining the number (count, n ) of ac...
Wednesday, 3 August 2011
The order of elements in STL map
›
Have you ever been surprised by the order of elements when traversing the map? We insert elements with random keys but elements appear sort...
Monday, 1 August 2011
Removing selected map elements whilst iterating through it
›
Couple of days ago I wrote about how to remove elements from vector while iterating through it and today I will focus on the same task but ...
Friday, 29 July 2011
Removing selected vector elements whilst iterating through it
›
Have you ever tried to iterate through vector and remove some elements? For example, you need to remove all odd numbers from a collection st...
›
Home
View web version