7#include <QtCore/qtconfigmacros.h>
11#if __has_include(<memory_resource>)
12# include <memory_resource>
35#if defined(__cpp_lib_erase_if) && __cpp_lib_erase_if >= 202002L
43template <
typename T,
typename U>
44constexpr typename std::vector<T, std::allocator<T>>::size_type
47 const auto origSize =
c.size();
48 auto it = std::remove(
c.begin(),
c.end(),
value);
50 return origSize -
c.size();
53template <
typename T,
typename Pred>
54constexpr typename std::vector<T, std::allocator<T>>::size_type
55erase_if(std::vector<T, std::allocator<T>> &
c, Pred pred)
57 const auto origSize =
c.size();
58 auto it = std::remove_if(
c.begin(),
c.end(), pred);
60 return origSize -
c.size();
63#ifdef __cpp_lib_polymorphic_allocator
64template <
typename T,
typename U>
65constexpr typename std::vector<T, std::pmr::polymorphic_allocator<T>>::size_type
66erase(std::vector<T, std::pmr::polymorphic_allocator<T>> &
c,
const U &
value)
68 const auto origSize =
c.size();
69 auto it = std::remove(
c.begin(),
c.end(),
value);
71 return origSize -
c.size();
74template <
typename T,
typename Pred>
75constexpr typename std::vector<T, std::pmr::polymorphic_allocator<T>>::size_type
76erase_if(std::vector<T, std::pmr::polymorphic_allocator<T>> &
c, Pred pred)
78 const auto origSize =
c.size();
79 auto it = std::remove_if(
c.begin(),
c.end(), pred);
81 return origSize -
c.size();
QSet< QString >::iterator it
Combined button and popup list for selecting options.
constexpr std::vector< T, std::allocator< T > >::size_type erase(std::vector< T, std::allocator< T > > &c, const U &value)
constexpr std::vector< T, std::allocator< T > >::size_type erase_if(std::vector< T, std::allocator< T > > &c, Pred pred)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]