[docs] Remove references to C++11 feature availability
QVersionNumber, e.g., was added for Qt 5.6, the last Qt version that didn't require C++11. So it made sense that the original documentation stated that certain functions were only available in C++11 mode. But already Qt 5.7 required C++11, so these historical anecdotes are no longer pertient to today's Qt users, so remove them from the docs. Pick-to: 6.5 6.2 5.15 Change-Id: I5c732d3b9b33e1fb6947eff4fac546476c8379f2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 4f3142bfce0c64d023299f142d14e60ec577b698) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 5b856ba18f0316e9886a0d1048c9e1bb5e2b9fa1)
This commit is contained in:
parent
155f97a0a2
commit
e98f7b448d
@ -445,8 +445,8 @@ QT_BEGIN_NAMESPACE
|
|||||||
The template parameter \c T must be a C++ integer type:
|
The template parameter \c T must be a C++ integer type:
|
||||||
\list
|
\list
|
||||||
\li 8-bit: char, signed char, unsigned char, qint8, quint8
|
\li 8-bit: char, signed char, unsigned char, qint8, quint8
|
||||||
\li 16-bit: short, unsigned short, qint16, quint16, char16_t (C++11)
|
\li 16-bit: short, unsigned short, qint16, quint16, char16_t
|
||||||
\li 32-bit: int, unsigned int, qint32, quint32, char32_t (C++11)
|
\li 32-bit: int, unsigned int, qint32, quint32, char32_t
|
||||||
\li 64-bit: long long, unsigned long long, qint64, quint64
|
\li 64-bit: long long, unsigned long long, qint64, quint64
|
||||||
\li platform-specific size: long, unsigned long
|
\li platform-specific size: long, unsigned long
|
||||||
\li pointer size: qintptr, quintptr, qptrdiff
|
\li pointer size: qintptr, quintptr, qptrdiff
|
||||||
|
@ -32,8 +32,8 @@
|
|||||||
The template parameter \c T must be a C++ integer type:
|
The template parameter \c T must be a C++ integer type:
|
||||||
\list
|
\list
|
||||||
\li 8-bit: bool, char, signed char, unsigned char, qint8, quint8, char8_t (C++20)
|
\li 8-bit: bool, char, signed char, unsigned char, qint8, quint8, char8_t (C++20)
|
||||||
\li 16-bit: short, unsigned short, qint16, quint16, char16_t (C++11)
|
\li 16-bit: short, unsigned short, qint16, quint16, char16_t
|
||||||
\li 32-bit: int, unsigned int, qint32, quint32, char32_t (C++11)
|
\li 32-bit: int, unsigned int, qint32, quint32, char32_t
|
||||||
\li 64-bit: long long, unsigned long long, qint64, quint64
|
\li 64-bit: long long, unsigned long long, qint64, quint64
|
||||||
\li platform-specific size: long, unsigned long
|
\li platform-specific size: long, unsigned long
|
||||||
\li pointer size: qintptr, quintptr, qptrdiff
|
\li pointer size: qintptr, quintptr, qptrdiff
|
||||||
|
@ -116,8 +116,7 @@ QCommandLineOption::QCommandLineOption(const QStringList &names)
|
|||||||
The default value for the option is set to \a defaultValue.
|
The default value for the option is set to \a defaultValue.
|
||||||
|
|
||||||
In Qt versions before 5.4, this constructor was \c explicit. In Qt 5.4
|
In Qt versions before 5.4, this constructor was \c explicit. In Qt 5.4
|
||||||
and later, it no longer is and can be used for C++11-style uniform
|
and later, it no longer is and can be used for uniform initialization:
|
||||||
initialization:
|
|
||||||
|
|
||||||
\snippet code/src_corelib_tools_qcommandlineoption.cpp cxx11-init
|
\snippet code/src_corelib_tools_qcommandlineoption.cpp cxx11-init
|
||||||
|
|
||||||
@ -152,8 +151,7 @@ QCommandLineOption::QCommandLineOption(const QString &name, const QString &descr
|
|||||||
The default value for the option is set to \a defaultValue.
|
The default value for the option is set to \a defaultValue.
|
||||||
|
|
||||||
In Qt versions before 5.4, this constructor was \c explicit. In Qt 5.4
|
In Qt versions before 5.4, this constructor was \c explicit. In Qt 5.4
|
||||||
and later, it no longer is and can be used for C++11-style uniform
|
and later, it no longer is and can be used for uniform initialization:
|
||||||
initialization:
|
|
||||||
|
|
||||||
\snippet code/src_corelib_tools_qcommandlineoption.cpp cxx11-init-list
|
\snippet code/src_corelib_tools_qcommandlineoption.cpp cxx11-init-list
|
||||||
|
|
||||||
|
@ -2937,9 +2937,6 @@ size_t qHash(long double key, size_t seed) noexcept
|
|||||||
|
|
||||||
Constructs a multi-hash with a copy of each of the elements in the
|
Constructs a multi-hash with a copy of each of the elements in the
|
||||||
initializer list \a list.
|
initializer list \a list.
|
||||||
|
|
||||||
This function is only available if the program is being
|
|
||||||
compiled in C++11 mode.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn template <class Key, class T> QMultiHash<Key, T>::QMultiHash(const QHash<Key, T> &other)
|
/*! \fn template <class Key, class T> QMultiHash<Key, T>::QMultiHash(const QHash<Key, T> &other)
|
||||||
|
@ -174,7 +174,7 @@
|
|||||||
last QSharedPointer instance had.
|
last QSharedPointer instance had.
|
||||||
|
|
||||||
This class is never instantiated directly: the constructors and
|
This class is never instantiated directly: the constructors and
|
||||||
destructor are private and, in C++11, deleted. Only the create() function
|
destructor are deleted. Only the create() function
|
||||||
may be called to return an object of this type. See below for construction
|
may be called to return an object of this type. See below for construction
|
||||||
details.
|
details.
|
||||||
|
|
||||||
@ -213,8 +213,7 @@
|
|||||||
|
|
||||||
Like ExternalRefCountWithCustomDeleter, this class is never instantiated
|
Like ExternalRefCountWithCustomDeleter, this class is never instantiated
|
||||||
directly. This class also provides a create() member that returns the
|
directly. This class also provides a create() member that returns the
|
||||||
pointer, and hides its constructors and destructor. With C++11, they're
|
pointer, and deletes its constructors and destructor.
|
||||||
deleted.
|
|
||||||
|
|
||||||
The size of this class depends on the size of \tt T.
|
The size of this class depends on the size of \tt T.
|
||||||
|
|
||||||
|
@ -98,9 +98,6 @@
|
|||||||
\since 5.5
|
\since 5.5
|
||||||
|
|
||||||
Constructs an array from the std::initializer_list given by \a args.
|
Constructs an array from the std::initializer_list given by \a args.
|
||||||
|
|
||||||
This constructor is only enabled if the compiler supports C++11 initializer
|
|
||||||
lists.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn template<class T, qsizetype Prealloc> template<typename InputIterator, if_input_iterator<InputIterator>> QVarLengthArray<T, Prealloc>::QVarLengthArray(InputIterator first, InputIterator last)
|
/*! \fn template<class T, qsizetype Prealloc> template<typename InputIterator, if_input_iterator<InputIterator>> QVarLengthArray<T, Prealloc>::QVarLengthArray(InputIterator first, InputIterator last)
|
||||||
@ -424,9 +421,6 @@
|
|||||||
\since 5.5
|
\since 5.5
|
||||||
|
|
||||||
Assigns the values of \a list to this array, and returns a reference to this array.
|
Assigns the values of \a list to this array, and returns a reference to this array.
|
||||||
|
|
||||||
This constructor is only enabled if the compiler supports C++11 initializer
|
|
||||||
lists.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn template<class T, qsizetype Prealloc> QVarLengthArray<T, Prealloc>::QVarLengthArray(const QVarLengthArray<T, Prealloc> &other)
|
/*! \fn template<class T, qsizetype Prealloc> QVarLengthArray<T, Prealloc>::QVarLengthArray(const QVarLengthArray<T, Prealloc> &other)
|
||||||
|
@ -72,8 +72,6 @@ QT_IMPL_METATYPE_EXTERN(QTypeRevision)
|
|||||||
\fn QVersionNumber::QVersionNumber(QList<int> &&seg)
|
\fn QVersionNumber::QVersionNumber(QList<int> &&seg)
|
||||||
|
|
||||||
Move-constructs a version number from the list of numbers contained in \a seg.
|
Move-constructs a version number from the list of numbers contained in \a seg.
|
||||||
|
|
||||||
This constructor is only enabled if the compiler supports C++11 move semantics.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -81,9 +79,6 @@ QT_IMPL_METATYPE_EXTERN(QTypeRevision)
|
|||||||
|
|
||||||
Construct a version number from the std::initializer_list specified by
|
Construct a version number from the std::initializer_list specified by
|
||||||
\a args.
|
\a args.
|
||||||
|
|
||||||
This constructor is only enabled if the compiler supports C++11 initializer
|
|
||||||
lists.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -51,7 +51,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
contains() a QPoint or QRect. The bounding rectangle can be found
|
contains() a QPoint or QRect. The bounding rectangle can be found
|
||||||
with boundingRect().
|
with boundingRect().
|
||||||
|
|
||||||
Iteration over the region (with begin(), end(), or C++11
|
Iteration over the region (with begin(), end(), or
|
||||||
ranged-for loops) gives a decomposition of the region into
|
ranged-for loops) gives a decomposition of the region into
|
||||||
rectangles.
|
rectangles.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user