ns/releases/3.05f/source/stlport/test/regression/map1.hpp
2005-07-14 17:41:41 +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;
};