Przeglądaj źródła

stl: std::is_nothrow_move_constructible_v

skypjack 1 dzień temu
rodzic
commit
35435d3d82

+ 1 - 1
src/entt/core/any.hpp

@@ -45,7 +45,7 @@ struct basic_any_storage<0u, Align> {
 
 
 template<typename Type, std::size_t Len, std::size_t Align>
 template<typename Type, std::size_t Len, std::size_t Align>
 // NOLINTNEXTLINE(bugprone-sizeof-expression)
 // NOLINTNEXTLINE(bugprone-sizeof-expression)
-struct in_situ: std::bool_constant<(Len != 0u) && alignof(Type) <= Align && sizeof(Type) <= Len && std::is_nothrow_move_constructible_v<Type>> {};
+struct in_situ: std::bool_constant<(Len != 0u) && alignof(Type) <= Align && sizeof(Type) <= Len && stl::is_nothrow_move_constructible_v<Type>> {};
 
 
 template<std::size_t Len, std::size_t Align>
 template<std::size_t Len, std::size_t Align>
 struct in_situ<void, Len, Align>: stl::false_type {};
 struct in_situ<void, Len, Align>: stl::false_type {};

+ 2 - 2
src/entt/core/iterator.hpp

@@ -26,7 +26,7 @@ struct input_iterator_pointer final {
      * @brief Constructs a proxy object by move.
      * @brief Constructs a proxy object by move.
      * @param val Value to use to initialize the proxy object.
      * @param val Value to use to initialize the proxy object.
      */
      */
-    constexpr input_iterator_pointer(value_type &&val) noexcept(std::is_nothrow_move_constructible_v<value_type>)
+    constexpr input_iterator_pointer(value_type &&val) noexcept(stl::is_nothrow_move_constructible_v<value_type>)
         : value{stl::move(val)} {}
         : value{stl::move(val)} {}
 
 
     /**
     /**
@@ -139,7 +139,7 @@ struct iterable_adaptor final {
      * @param from Begin iterator.
      * @param from Begin iterator.
      * @param to End iterator.
      * @param to End iterator.
      */
      */
-    constexpr iterable_adaptor(iterator from, sentinel to) noexcept(std::is_nothrow_move_constructible_v<iterator> && std::is_nothrow_move_constructible_v<sentinel>)
+    constexpr iterable_adaptor(iterator from, sentinel to) noexcept(stl::is_nothrow_move_constructible_v<iterator> && stl::is_nothrow_move_constructible_v<sentinel>)
         : first{stl::move(from)},
         : first{stl::move(from)},
           last{stl::move(to)} {}
           last{stl::move(to)} {}
 
 

+ 1 - 1
src/entt/core/utility.hpp

@@ -55,7 +55,7 @@ struct y_combinator {
      * @brief Constructs a y-combinator from a given function.
      * @brief Constructs a y-combinator from a given function.
      * @param recursive A potentially recursive function.
      * @param recursive A potentially recursive function.
      */
      */
-    constexpr y_combinator(Func recursive) noexcept(std::is_nothrow_move_constructible_v<Func>)
+    constexpr y_combinator(Func recursive) noexcept(stl::is_nothrow_move_constructible_v<Func>)
         : func{stl::move(recursive)} {}
         : func{stl::move(recursive)} {}
 
 
     /**
     /**

+ 1 - 0
src/entt/stl/type_traits.hpp

@@ -11,6 +11,7 @@ using std::invoke_result_t;
 using std::is_invocable_r_v;
 using std::is_invocable_r_v;
 using std::is_lvalue_reference_v;
 using std::is_lvalue_reference_v;
 using std::is_member_object_pointer_v;
 using std::is_member_object_pointer_v;
+using std::is_nothrow_move_constructible_v;
 using std::is_pointer_v;
 using std::is_pointer_v;
 using std::is_same_v;
 using std::is_same_v;
 using std::is_trivially_destructible_v;
 using std::is_trivially_destructible_v;