diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-08 15:34:42 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-12 09:12:41 +0200 |
commit | a7b85e59931443dd33adeb02c7201c1bd1d7cd1d (patch) | |
tree | 462e58e1a438174fa80c514ee5f25af8f3b44522 /src/corelib/global | |
parent | ac493c335c5465ede7fc8bf139e5e2fac8ae522e (diff) |
QMetaContainer: Add function to erase ranges from sequences
Change-Id: Ic51103c36d288f236106e2d3aec1401d53b97a15
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qcontainerinfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/global/qcontainerinfo.h b/src/corelib/global/qcontainerinfo.h index ad3ef301e4..c6ee9328ec 100644 --- a/src/corelib/global/qcontainerinfo.h +++ b/src/corelib/global/qcontainerinfo.h @@ -141,6 +141,11 @@ constexpr bool can_erase_at_iterator_v = false; template<typename C> constexpr bool can_erase_at_iterator_v<C, std::void_t<decltype(C().erase(C().begin()))>> = true; +template<typename, typename = void> +constexpr bool can_erase_range_at_iterator_v = false; +template<typename C> +constexpr bool can_erase_range_at_iterator_v<C, std::void_t<decltype(C().erase(C().begin(), C().end()))>> = true; + QT_WARNING_POP } |