diff options
Diffstat (limited to 'libcxx/include/ext/hash_set')
| -rw-r--r-- | libcxx/include/ext/hash_set | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/libcxx/include/ext/hash_set b/libcxx/include/ext/hash_set index 1ab259b59979..2f86649d6e98 100644 --- a/libcxx/include/ext/hash_set +++ b/libcxx/include/ext/hash_set @@ -192,23 +192,26 @@ template <class Value, class Hash, class Pred, class Alloc> */ -#include <__config> -#include <__hash_table> -#include <algorithm> -#include <ext/__hash> -#include <functional> - -#if defined(__DEPRECATED) && __DEPRECATED -# if defined(_LIBCPP_WARNING) +#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS) +# include <__cxx03/ext/hash_set> +#else +# include <__config> +# include <__hash_table> +# include <algorithm> +# include <ext/__hash> +# include <functional> + +# if defined(__DEPRECATED) && __DEPRECATED +# if defined(_LIBCPP_WARNING) _LIBCPP_WARNING("Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set>") -# else -# warning Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> +# else +# warning Use of the header <ext/hash_set> is deprecated. Migrate to <unordered_set> +# endif # endif -#endif -#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) -# pragma GCC system_header -#endif +# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) +# pragma GCC system_header +# endif namespace __gnu_cxx { @@ -575,10 +578,11 @@ inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const hash_multiset<_Value, _Hash, } // namespace __gnu_cxx -#if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20 -# include <concepts> -# include <iterator> -# include <type_traits> -#endif +# if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20 +# include <concepts> +# include <iterator> +# include <type_traits> +# endif +#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS) #endif // _LIBCPP_HASH_SET |
