#endif
//@}
+#if __cplusplus > 201703L
+ //@{
+ /**
+ * @brief Finds whether an element with the given key exists.
+ * @param __x Key of elements to be located.
+ * @return True if there is an element with the specified key.
+ */
+ bool
+ contains(const key_type& __x) const
+ { return _M_t.find(__x) != _M_t.end(); }
+
+ template<typename _Kt>
+ auto
+ contains(const _Kt& __x) const
+ -> decltype(_M_t._M_find_tr(__x), void(), true)
+ { return _M_t._M_find_tr(__x) != _M_t.end(); }
+ //@}
+#endif
+
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 214. set::find() missing const overload
//@{