#ifndef FLUTTER_INAPPWEBVIEW_PLUGIN_LOG_VECTOR_H_ #define FLUTTER_INAPPWEBVIEW_PLUGIN_LOG_VECTOR_H_ #include #include #include #include #include namespace flutter_inappwebview_plugin { template struct is_vector_impl : std::false_type { }; template struct is_vector_impl>::value> > : std::true_type { }; template struct is_vector_impl::value_type>::iterator>::value> > : std::true_type { }; template struct is_vector : is_vector_impl::type { }; template static inline void vector_remove_el(std::vector& vec, const T& el) { std::remove(vec.begin(), vec.end(), el); } template static inline void vector_remove_erase_el(std::vector& vec, const T& el) { vec.erase(std::remove(vec.begin(), vec.end(), el), vec.end()); } } #endif //FLUTTER_INAPPWEBVIEW_PLUGIN_LOG_VECTOR_H_