添加pair
This commit is contained in:
@@ -9,5 +9,17 @@ namespace TinySTL{
|
|||||||
a = b;
|
a = b;
|
||||||
b = temp;
|
b = temp;
|
||||||
}
|
}
|
||||||
|
//*********** [pair] ****************
|
||||||
|
template<class T1, class T2>
|
||||||
|
struct pair{
|
||||||
|
public:
|
||||||
|
typedef T1 first_type;
|
||||||
|
typedef T2 second_type;
|
||||||
|
public:
|
||||||
|
T1 first;
|
||||||
|
T2 second;
|
||||||
|
public:
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
Reference in New Issue
Block a user