Re: VC里面的stl支持是不是很弱?# Programming - 葵花宝典
o*r
1 楼
Code 来了
template
class PointGeneric
{
public:
inline PointGeneric(const T xx, const T yy);
inline PointGeneric();
inline virtual ~PointGeneric();
T x;
T y;
};
template
class PointGeneric3D : public PointGeneric
{
public:
...
// left shift
inline const PointGeneric3D operator-(const PointGeneric3D& p) co
nst;
inline PointGeneric3D(T xx, T yy, T zz);
...
inline PointGeneric3D();
template
class PointGeneric
{
public:
inline PointGeneric(const T xx, const T yy);
inline PointGeneric();
inline virtual ~PointGeneric();
T x;
T y;
};
template
class PointGeneric3D : public PointGeneric
{
public:
...
// left shift
inline const PointGeneric3D
nst;
inline PointGeneric3D
...
inline PointGeneric3D();