Documentation fix

Most of our containers do not require a default constructor for
the template argument. Of course some operations (such as reserve)
still need it.

Change-Id: If080c422a1ffc13b8cb5e0915cee9a7adee81adc
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
bb10
Lars Knoll 2018-11-19 14:06:28 +01:00
parent b98c43ea60
commit f91d1e0809
1 changed files with 3 additions and 2 deletions

View File

@ -171,8 +171,9 @@
The values stored in the various containers can be of any
\e{assignable data type}. To qualify, a type must provide a
default constructor, a copy constructor, and an assignment
operator. This covers most data types you are likely to want to
copy constructor, and an assignment operator. For some
operations a default constructor is also required. This
covers most data types you are likely to want to
store in a container, including basic types such as \c int and \c
double, pointer types, and Qt data types such as QString, QDate,
and QTime, but it doesn't cover QObject or any QObject subclass