Description

The template class describes an object that controls a varying-length sequence of elements. The object allocates and frees storage for the sequence it controls through a protected object named c, of class Cont. The type T of elements in the controlled sequence must match value_type.

An object of class Cont must supply several public members defined the same as for deque, list, and vector (all of which are suitable candidates for class Cont). The required members are:

    typedef T value_type;
    typedef T0 size_type;
    Cont();
    bool empty() const;
    size_type size() const;
    value_type& back();
    const value_type& back() const;
    void push_back(const value_type& x);
    void pop_back();
	bool operator==(const Cont& X) const;
	bool operator!=(const Cont& X) const;
	bool operator<(const Cont& X) const;
	bool operator>(const Cont& X) const;
	bool operator<=(const Cont& X) const;
	bool operator>=(const Cont& X) const;

Here, T0 is an unspecified type that meets the stated requirements.