Navigation



16.3 — STL iterators overview

An Iterator is an object that can traverse (iterate over) a container class without the user having to know how the container is implemented. With many classes (particularly lists and the associative classes), iterators are the primary way elements of these classes are accessed.

An iterator is best visualized as a pointer to a . . . → Read More: 16.3 — STL iterators overview

16.2 — STL containers overview

By far the most commonly used functionality of the STL library are the STL container classes. If you need a quick refresher on container classes, check out lesson 10.4 — Container Classes.

The STL contains many different container classes that can be used in different situations. Generally speaking, the container classes fall into three . . . → Read More: 16.2 — STL containers overview

New look and feel

ПодаръциканализацияAs you’re already noticing, the website now has a new look and feel! The previous theme that we were using for the website was woefully incompatible with WordPress 3.0, so we’ve upgraded to the Atahualpa theme, which has an incredible number of configuration options, and should provide better support for future features. Sorry Tiga . . . → Read More: New look and feel

Database Corruption / Site Issues

We experienced a massive site failure yesterday evening, with the database corrupted. Those of you familiar with the intricate workings of WordPress will know that the database holds everything — all the content, all the comments, all the configuration data. When the database goes, the site goes. Fortunately, the database is backed up on . . . → Read More: Database Corruption / Site Issues

17.7 — std::string inserting

Inserting

Inserting characters into an existing string can be done via the insert() function.

string& string::insert (size_type index, const string& str) string& string::insert (size_type index, const char* str)

Both functions insert the characters of str into the string at index Both function return *this so they can be “chained”. Both functions throw out_of_range if . . . → Read More: 17.7 — std::string inserting