Feeds:
Posts
Comments

Archive for the ‘boost’ Category

The future standard extension (some of it is described in the Technical Report on C++ Standard Library Extensions – TR1) is going to include many libraries already contained within boost. One such library is boost’s Smart Pointers. In this post I would like to show an interesting use-case of the smart_ptr class, through what I [...]

Read Full Post »

boost::optional is a very handy generalization of returning a null when there’s nothing to return. Consider a function such as strstr – either the required sub-string is found within the given string, in which case a pointer to it is returned, or a NULL value is returned to indicate that there was no such sub-string. [...]

Read Full Post »