|
@@ -4,8 +4,6 @@
|
|
|
#include "../config/config.h"
|
|
#include "../config/config.h"
|
|
|
|
|
|
|
|
/*! @cond ENTT_INTERNAL */
|
|
/*! @cond ENTT_INTERNAL */
|
|
|
-namespace entt::stl {
|
|
|
|
|
-
|
|
|
|
|
#ifndef ENTT_FORCE_STL
|
|
#ifndef ENTT_FORCE_STL
|
|
|
# if __has_include(<version>)
|
|
# if __has_include(<version>)
|
|
|
# include <version>
|
|
# include <version>
|
|
@@ -13,6 +11,9 @@ namespace entt::stl {
|
|
|
# if defined(__cpp_lib_ranges)
|
|
# if defined(__cpp_lib_ranges)
|
|
|
# define ENTT_HAS_ITERATOR_CONCEPTS
|
|
# define ENTT_HAS_ITERATOR_CONCEPTS
|
|
|
# include <iterator>
|
|
# include <iterator>
|
|
|
|
|
+
|
|
|
|
|
+namespace entt::stl {
|
|
|
|
|
+
|
|
|
using std::bidirectional_iterator;
|
|
using std::bidirectional_iterator;
|
|
|
using std::forward_iterator;
|
|
using std::forward_iterator;
|
|
|
using std::input_iterator;
|
|
using std::input_iterator;
|
|
@@ -20,6 +21,9 @@ using std::input_or_output_iterator;
|
|
|
using std::output_iterator;
|
|
using std::output_iterator;
|
|
|
using std::random_access_iterator;
|
|
using std::random_access_iterator;
|
|
|
using std::sentinel_for;
|
|
using std::sentinel_for;
|
|
|
|
|
+
|
|
|
|
|
+} // namespace entt::stl
|
|
|
|
|
+
|
|
|
# endif
|
|
# endif
|
|
|
# endif
|
|
# endif
|
|
|
#endif
|
|
#endif
|
|
@@ -29,6 +33,8 @@ using std::sentinel_for;
|
|
|
# include <iterator>
|
|
# include <iterator>
|
|
|
# include <utility>
|
|
# include <utility>
|
|
|
|
|
|
|
|
|
|
+namespace entt::stl {
|
|
|
|
|
+
|
|
|
namespace internal {
|
|
namespace internal {
|
|
|
|
|
|
|
|
template<typename It>
|
|
template<typename It>
|
|
@@ -87,9 +93,10 @@ template<class Sentinel, typename It>
|
|
|
concept sentinel_for = input_or_output_iterator<It> && requires(Sentinel sentinel, It it) {
|
|
concept sentinel_for = input_or_output_iterator<It> && requires(Sentinel sentinel, It it) {
|
|
|
{ it == sentinel } -> std::same_as<bool>;
|
|
{ it == sentinel } -> std::same_as<bool>;
|
|
|
};
|
|
};
|
|
|
-#endif
|
|
|
|
|
|
|
|
|
|
} // namespace entt::stl
|
|
} // namespace entt::stl
|
|
|
|
|
+
|
|
|
|
|
+#endif
|
|
|
/*! @endcond */
|
|
/*! @endcond */
|
|
|
|
|
|
|
|
#endif
|
|
#endif
|