123
This commit is contained in:
10
STLPORT/test/regression/map1.hpp
Normal file
10
STLPORT/test/regression/map1.hpp
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
// 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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user