C/C++
bullet.txt
Associated article: Bulletproofing C++ Code
Tags: .NET C/C++ Tools Open Source Design
Published source code accompanying the article by Sergei Sokolov, in which he examines techniques that improve the stability and reduce the risks of errors for programming.
Bulletproofing C++ Code
by Sergei Sokolov
Listing One
bool SetClient::contains(double d, SetType & h)
{
for (SetType::const_iterator it = h.begin(); it != h.end(); ++it) {
// Pointer to a double of value d?
if (*((double*)((*it)->getValue())) == ...


