summaryrefslogtreecommitdiffstats
path: root/tests/auto/other
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-05-12 11:00:19 +0200
committerMarc Mutz <marc.mutz@kdab.com>2020-05-14 12:19:47 +0000
commit9e1dc1e8a9fda1a7576cc6377c8a36decff631eb (patch)
tree4c7f8ddcd4f111c967be212c7ebf5c26f850fa6f /tests/auto/other
parent594abde1a257a95ef33634a950a6429ac33d2b76 (diff)
QStringView: add converting constructor from array-like containers
Centralize, rather than keeping adding constructors from any array-like container. A more robust implementation, likely following the converting constructor for std::span ([span.cons]), is out of scope for C++17 and will require C++20's ranges and concepts. [ChangeLog][QtCore][QStringView] QStringView can now be constructed from any contiguous container, as long as they hold string-like data. For instance, it's now possible to create a QStringView object from a std::vector<char16_t>, a QVarLengthArray<ushort> and so on. Change-Id: I7043eb194f617e98bd1f8af1237777a93a6c5e75 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'tests/auto/other')
0 files changed, 0 insertions, 0 deletions