[Interest] QT API wrapper around std:: containers?

Felix morack felixover at gmail.com
Fri Jan 30 12:40:32 CET 2015


the idea was to create a wrapper for all the needed containers
individually, like so:

class myvec<T> : std::vector < T >
{
auto append(const auto& v) { push_back(v); }
auto append(auto&& v) { push_back(v); }
...

2015-01-30 12:28 GMT+01:00 Konstantin Tokarev <annulen at yandex.ru>:

>
>
> 29.01.2015, 23:35, "Felix morack" <felixover at gmail.com>:
> > 1. yes, but that isnt stl based. i am talking about a drop-in
> replacement that wraps a std:: container.
> > 2. Qt containers will only store maximal number of MAX_INT number of
> items, ie 2147483647.
> > 3. because i have a lot of code written against the Qt api already.
>
> You might want to read Effective STL by Scott Meyers, in particular item
> "Beware the illusion of container-independent code".
>
> --
> Regards,
> Konstantin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150130/4c281e3f/attachment.html>


More information about the Interest mailing list