You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
618 B
C++

//////////////////////////////////////////////////////////////////////////////
//Îļþ VectorSet.h
//Ö÷Òª¹¦ÄÜ:
/////////////////////////////////////////////////////////////////////////////
#ifndef vector_set_h
#define vector_set_h
namespace NSet
{
class CVectorSet
{
public:
virtual ~CVectorSet() {}
virtual int size() const = 0;
virtual bool IsValidIndex(int) const = 0;
virtual void swap(int,int) = 0;
virtual void erase() = 0;
virtual void remove(int from,int to) = 0;
inline bool isEmpty() const { return size() == 0; }
};
} // namespace
using namespace NSet;
#endif