1

Topic: If it is impossible to be inherited from containers...

.., That whence undertook QStringList?

2

Re: If it is impossible to be inherited from containers...

Hello, Alexander G, you wrote: AG>., whence undertook QStringList? In STL it is impossible, and Qt it is possible to turn back that you want, more truly that Qt does not forbid. At them there the rules. They QStringList not from the standard container inherit?

3

Re: If it is impossible to be inherited from containers...

Hello, Alexander G, you wrote: AG>., whence undertook QStringList? What with you? Overworked? Well so ahead days off!

4

Re: If it is impossible to be inherited from containers...

Hello, Alexander G, you wrote: AG>., whence undertook QStringList? What means it is impossible? std:: vector after all it is not declared by a final class.

5

Re: If it is impossible to be inherited from containers...

Hello, Alexander G, you wrote: it is possible. Only without dynamic polymorphism.

6

Re: If it is impossible to be inherited from containers...

Hello, _NN _, you wrote: _NN> That means it is impossible? Type in curve hands it is possible to give birth to the such: class Fuck: public std:vector {public: std:: string oops;}; std:: unique_ptr <std:: vector> fuck = std:: make_unique <Fuck> (); At removal oops it will not be deleted

7

Re: If it is impossible to be inherited from containers...

Hello, T4r4sB, you wrote: TB> Hello, _NN _, you wrote: _NN>> That means it is impossible? TB> Type in curve hands it is possible to give birth to the such: TB> TB> class Fuck: public std:vector TB> {TB> public: TB> std:: string oops; TB>}; TB> std:: unique_ptr <std:: vector> fuck = std:: make_unique <Fuck> (); TB> TB> At removal oops it will not be deleted And if std:: shared_ptr or explicitly to substitute the correct function of removal that it will be deleted Anyway containers are not intended for polymorphic usage after all at them there are no the virtual functions. Therefore it is possible to inherit, and to use the above-stated method is not present. By the way it concerns all classes where there is no virtual , and not just containers.

8

Re: If it is impossible to be inherited from containers...

Hello, Alexander G, you wrote: template <typename T, typename Container = std:: deque <T>> class iterable_queue: public std:: queue <T, Container> {public: typedef typename Container:: iterator iterator; typedef typename Container:: const_iterator const_iterator; iterator begin () {return this-> c.begin ();} iterator end () {return this-> c.end ();} const_iterator begin () const {return this-> c.begin ();} const_iterator end () const {return this-> c.end ();}};