NS/dev/performance-3.0.5/source/stlport/test/regression/map1.hpp
2005-06-29 13:51:58 +00:00

10 lines
255 B
C++

// class Int is defined here because the primitive 'int' does not have a
// default constructor. The default constructor is used when map['z']
// accesses an uninitialized element.
struct Int
{
Int(int x = 0) : val(x) {};
int val;
};