diff --git a/include/boost/atomic/detail/atomic_ref_template.hpp b/include/boost/atomic/detail/atomic_ref_template.hpp index 0aa1597..effc2e4 100644 --- a/include/boost/atomic/detail/atomic_ref_template.hpp +++ b/include/boost/atomic/detail/atomic_ref_template.hpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include #include @@ -887,7 +887,7 @@ private: #if defined(BOOST_HAS_INTPTR_T) typedef uintptr_t uintptr_storage_type; #else - typedef typename atomics::detail::make_storage_type< sizeof(value_type) >::type uintptr_storage_type; + typedef typename atomics::detail::storage_traits< sizeof(value_type) >::type uintptr_storage_type; #endif public: diff --git a/include/boost/atomic/detail/atomic_template.hpp b/include/boost/atomic/detail/atomic_template.hpp index 3e6bf35..128831e 100644 --- a/include/boost/atomic/detail/atomic_template.hpp +++ b/include/boost/atomic/detail/atomic_template.hpp @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include @@ -906,7 +906,7 @@ private: #if defined(BOOST_HAS_INTPTR_T) typedef uintptr_t uintptr_storage_type; #else - typedef typename atomics::detail::make_storage_type< sizeof(value_type) >::type uintptr_storage_type; + typedef typename atomics::detail::storage_traits< sizeof(value_type) >::type uintptr_storage_type; #endif public: diff --git a/include/boost/atomic/detail/extra_fp_ops_generic.hpp b/include/boost/atomic/detail/extra_fp_ops_generic.hpp index 34902c4..410afe3 100644 --- a/include/boost/atomic/detail/extra_fp_ops_generic.hpp +++ b/include/boost/atomic/detail/extra_fp_ops_generic.hpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/atomic/detail/extra_ops_emulated.hpp b/include/boost/atomic/detail/extra_ops_emulated.hpp index c0e4832..524c377 100644 --- a/include/boost/atomic/detail/extra_ops_emulated.hpp +++ b/include/boost/atomic/detail/extra_ops_emulated.hpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include diff --git a/include/boost/atomic/detail/extra_ops_gcc_arm.hpp b/include/boost/atomic/detail/extra_ops_gcc_arm.hpp index e84f177..2b10cc4 100644 --- a/include/boost/atomic/detail/extra_ops_gcc_arm.hpp +++ b/include/boost/atomic/detail/extra_ops_gcc_arm.hpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include @@ -97,7 +97,7 @@ struct gcc_arm_extra_operations< Base, 1u, Signed > : { typedef generic_extra_operations< Base, 1u, Signed > base_type; typedef typename base_type::storage_type storage_type; - typedef typename make_storage_type< 4u >::type extended_storage_type; + typedef typename storage_traits< 4u >::type extended_storage_type; static BOOST_FORCEINLINE storage_type fetch_negate(storage_type volatile& storage, memory_order order) BOOST_NOEXCEPT { @@ -350,7 +350,7 @@ struct gcc_arm_extra_operations< Base, 2u, Signed > : { typedef generic_extra_operations< Base, 2u, Signed > base_type; typedef typename base_type::storage_type storage_type; - typedef typename make_storage_type< 4u >::type extended_storage_type; + typedef typename storage_traits< 4u >::type extended_storage_type; static BOOST_FORCEINLINE storage_type fetch_negate(storage_type volatile& storage, memory_order order) BOOST_NOEXCEPT { diff --git a/include/boost/atomic/detail/extra_ops_gcc_ppc.hpp b/include/boost/atomic/detail/extra_ops_gcc_ppc.hpp index dc4bbdb..d430ebd 100644 --- a/include/boost/atomic/detail/extra_ops_gcc_ppc.hpp +++ b/include/boost/atomic/detail/extra_ops_gcc_ppc.hpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/atomic/detail/extra_ops_gcc_x86.hpp b/include/boost/atomic/detail/extra_ops_gcc_x86.hpp index 56a6563..ddd1ca7 100644 --- a/include/boost/atomic/detail/extra_ops_gcc_x86.hpp +++ b/include/boost/atomic/detail/extra_ops_gcc_x86.hpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include @@ -37,7 +37,7 @@ struct extra_operations< Base, 1u, Signed, true > : { typedef generic_extra_operations< Base, 1u, Signed > base_type; typedef typename base_type::storage_type storage_type; - typedef typename make_storage_type< 4u >::type temp_storage_type; + typedef typename storage_traits< 4u >::type temp_storage_type; #define BOOST_ATOMIC_DETAIL_CAS_LOOP(op, original, result)\ __asm__ __volatile__\ @@ -419,7 +419,7 @@ struct extra_operations< Base, 2u, Signed, true > : { typedef generic_extra_operations< Base, 2u, Signed > base_type; typedef typename base_type::storage_type storage_type; - typedef typename make_storage_type< 4u >::type temp_storage_type; + typedef typename storage_traits< 4u >::type temp_storage_type; #define BOOST_ATOMIC_DETAIL_CAS_LOOP(op, original, result)\ __asm__ __volatile__\ diff --git a/include/boost/atomic/detail/extra_ops_generic.hpp b/include/boost/atomic/detail/extra_ops_generic.hpp index 4384262..fd91d9d 100644 --- a/include/boost/atomic/detail/extra_ops_generic.hpp +++ b/include/boost/atomic/detail/extra_ops_generic.hpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include @@ -43,7 +43,7 @@ struct generic_extra_operations : { typedef Base base_type; typedef typename base_type::storage_type storage_type; - typedef typename make_storage_type< Size >::type emulated_storage_type; + typedef typename storage_traits< Size >::type emulated_storage_type; static BOOST_FORCEINLINE storage_type fetch_negate(storage_type volatile& storage, memory_order order) BOOST_NOEXCEPT { @@ -200,7 +200,7 @@ struct generic_extra_operations< Base, Size, Signed, true > : { typedef Base base_type; typedef typename base_type::storage_type storage_type; - typedef typename make_storage_type< Size >::type emulated_storage_type; + typedef typename storage_traits< Size >::type emulated_storage_type; static BOOST_FORCEINLINE storage_type fetch_negate(storage_type volatile& storage, memory_order order) BOOST_NOEXCEPT { diff --git a/include/boost/atomic/detail/extra_ops_msvc_arm.hpp b/include/boost/atomic/detail/extra_ops_msvc_arm.hpp index b8eb5bc..1cc858b 100644 --- a/include/boost/atomic/detail/extra_ops_msvc_arm.hpp +++ b/include/boost/atomic/detail/extra_ops_msvc_arm.hpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/atomic/detail/extra_ops_msvc_x86.hpp b/include/boost/atomic/detail/extra_ops_msvc_x86.hpp index 6e9eabc..75edc83 100644 --- a/include/boost/atomic/detail/extra_ops_msvc_x86.hpp +++ b/include/boost/atomic/detail/extra_ops_msvc_x86.hpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/boost/atomic/detail/fp_ops_generic.hpp b/include/boost/atomic/detail/fp_ops_generic.hpp index b83e85a..ba27bb7 100644 --- a/include/boost/atomic/detail/fp_ops_generic.hpp +++ b/include/boost/atomic/detail/fp_ops_generic.hpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #ifdef BOOST_HAS_PRAGMA_ONCE diff --git a/include/boost/atomic/detail/ops_cas_based.hpp b/include/boost/atomic/detail/ops_cas_based.hpp index e2e18aa..17bf270 100644 --- a/include/boost/atomic/detail/ops_cas_based.hpp +++ b/include/boost/atomic/detail/ops_cas_based.hpp @@ -16,7 +16,7 @@ #include #include -#include +#include #ifdef BOOST_HAS_PRAGMA_ONCE #pragma once diff --git a/include/boost/atomic/detail/ops_emulated.hpp b/include/boost/atomic/detail/ops_emulated.hpp index da9b343..8946265 100644 --- a/include/boost/atomic/detail/ops_emulated.hpp +++ b/include/boost/atomic/detail/ops_emulated.hpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include @@ -33,10 +33,10 @@ namespace detail { template< std::size_t Size, bool Signed > struct emulated_operations { - typedef typename make_storage_type< Size >::type storage_type; + typedef typename storage_traits< Size >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = Size; - static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = make_storage_type< Size >::alignment; + static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = storage_traits< Size >::alignment; static BOOST_CONSTEXPR_OR_CONST bool is_signed = Signed; static BOOST_CONSTEXPR_OR_CONST bool full_cas_based = false; diff --git a/include/boost/atomic/detail/ops_extending_cas_based.hpp b/include/boost/atomic/detail/ops_extending_cas_based.hpp index 5f197ce..a8bc326 100644 --- a/include/boost/atomic/detail/ops_extending_cas_based.hpp +++ b/include/boost/atomic/detail/ops_extending_cas_based.hpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #ifdef BOOST_HAS_PRAGMA_ONCE @@ -33,7 +33,7 @@ struct extending_cas_based_operations : public Base { typedef typename Base::storage_type storage_type; - typedef typename make_storage_type< Size >::type emulated_storage_type; + typedef typename storage_traits< Size >::type emulated_storage_type; static BOOST_FORCEINLINE storage_type fetch_add(storage_type volatile& storage, storage_type v, memory_order order) BOOST_NOEXCEPT { diff --git a/include/boost/atomic/detail/ops_gcc_alpha.hpp b/include/boost/atomic/detail/ops_gcc_alpha.hpp index d07ff93..d62e7a6 100644 --- a/include/boost/atomic/detail/ops_gcc_alpha.hpp +++ b/include/boost/atomic/detail/ops_gcc_alpha.hpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include @@ -91,7 +91,7 @@ template< bool Signed > struct operations< 4u, Signed > : public gcc_alpha_operations_base { - typedef typename make_storage_type< 4u >::type storage_type; + typedef typename storage_traits< 4u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 4u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 4u; @@ -601,7 +601,7 @@ template< bool Signed > struct operations< 8u, Signed > : public gcc_alpha_operations_base { - typedef typename make_storage_type< 8u >::type storage_type; + typedef typename storage_traits< 8u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 8u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 8u; diff --git a/include/boost/atomic/detail/ops_gcc_arm.hpp b/include/boost/atomic/detail/ops_gcc_arm.hpp index 8e32e84..2cfdee3 100644 --- a/include/boost/atomic/detail/ops_gcc_arm.hpp +++ b/include/boost/atomic/detail/ops_gcc_arm.hpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include @@ -60,7 +60,7 @@ template< bool Signed > struct operations< 4u, Signed > : public gcc_arm_operations_base { - typedef typename make_storage_type< 4u >::type storage_type; + typedef typename storage_traits< 4u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 4u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 4u; @@ -318,8 +318,8 @@ template< bool Signed > struct operations< 1u, Signed > : public gcc_arm_operations_base { - typedef typename make_storage_type< 1u >::type storage_type; - typedef typename make_storage_type< 4u >::type extended_storage_type; + typedef typename storage_traits< 1u >::type storage_type; + typedef typename storage_traits< 4u >::type extended_storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 1u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 1u; @@ -705,8 +705,8 @@ template< bool Signed > struct operations< 2u, Signed > : public gcc_arm_operations_base { - typedef typename make_storage_type< 2u >::type storage_type; - typedef typename make_storage_type< 4u >::type extended_storage_type; + typedef typename storage_traits< 2u >::type storage_type; + typedef typename storage_traits< 4u >::type extended_storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 2u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 2u; @@ -1103,7 +1103,7 @@ template< bool Signed > struct operations< 8u, Signed > : public gcc_arm_operations_base { - typedef typename make_storage_type< 8u >::type storage_type; + typedef typename storage_traits< 8u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 8u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 8u; diff --git a/include/boost/atomic/detail/ops_gcc_atomic.hpp b/include/boost/atomic/detail/ops_gcc_atomic.hpp index 91dbf91..7360b88 100644 --- a/include/boost/atomic/detail/ops_gcc_atomic.hpp +++ b/include/boost/atomic/detail/ops_gcc_atomic.hpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #if (defined(__clang__) || (defined(BOOST_GCC) && (BOOST_GCC+0) >= 70000)) && (defined(BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG8B) || defined(BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG16B)) @@ -84,10 +84,10 @@ BOOST_FORCEINLINE BOOST_CONSTEXPR int convert_memory_order_to_gcc(memory_order o template< std::size_t Size, bool Signed > struct gcc_atomic_operations { - typedef typename make_storage_type< Size >::type storage_type; + typedef typename storage_traits< Size >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = Size; - static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = make_storage_type< Size >::alignment; + static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = storage_traits< Size >::alignment; static BOOST_CONSTEXPR_OR_CONST bool is_signed = Signed; static BOOST_CONSTEXPR_OR_CONST bool full_cas_based = false; diff --git a/include/boost/atomic/detail/ops_gcc_ppc.hpp b/include/boost/atomic/detail/ops_gcc_ppc.hpp index e044d16..82c0310 100644 --- a/include/boost/atomic/detail/ops_gcc_ppc.hpp +++ b/include/boost/atomic/detail/ops_gcc_ppc.hpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include @@ -83,7 +83,7 @@ template< bool Signed > struct operations< 4u, Signed > : public gcc_ppc_operations_base { - typedef typename make_storage_type< 4u >::type storage_type; + typedef typename storage_traits< 4u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 4u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 4u; @@ -313,7 +313,7 @@ template< bool Signed > struct operations< 1u, Signed > : public gcc_ppc_operations_base { - typedef typename make_storage_type< 1u >::type storage_type; + typedef typename storage_traits< 1u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 1u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 1u; @@ -643,7 +643,7 @@ template< bool Signed > struct operations< 2u, Signed > : public gcc_ppc_operations_base { - typedef typename make_storage_type< 2u >::type storage_type; + typedef typename storage_traits< 2u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 2u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 2u; @@ -973,7 +973,7 @@ template< bool Signed > struct operations< 8u, Signed > : public gcc_ppc_operations_base { - typedef typename make_storage_type< 8u >::type storage_type; + typedef typename storage_traits< 8u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 8u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 8u; diff --git a/include/boost/atomic/detail/ops_gcc_sparc.hpp b/include/boost/atomic/detail/ops_gcc_sparc.hpp index e17b7c0..3bd968d 100644 --- a/include/boost/atomic/detail/ops_gcc_sparc.hpp +++ b/include/boost/atomic/detail/ops_gcc_sparc.hpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include @@ -65,7 +65,7 @@ template< bool Signed > struct gcc_sparc_cas32 : public gcc_sparc_cas_base { - typedef typename make_storage_type< 4u >::type storage_type; + typedef typename storage_traits< 4u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 4u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 4u; @@ -149,7 +149,7 @@ template< bool Signed > struct gcc_sparc_cas64 : public gcc_sparc_cas_base { - typedef typename make_storage_type< 8u >::type storage_type; + typedef typename storage_traits< 8u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 8u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 8u; diff --git a/include/boost/atomic/detail/ops_gcc_sync.hpp b/include/boost/atomic/detail/ops_gcc_sync.hpp index 1a7cd70..279d192 100644 --- a/include/boost/atomic/detail/ops_gcc_sync.hpp +++ b/include/boost/atomic/detail/ops_gcc_sync.hpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include @@ -60,10 +60,10 @@ template< std::size_t Size, bool Signed > struct gcc_sync_operations : public gcc_sync_operations_base { - typedef typename make_storage_type< Size >::type storage_type; + typedef typename storage_traits< Size >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = Size; - static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = make_storage_type< Size >::alignment; + static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = storage_traits< Size >::alignment; static BOOST_CONSTEXPR_OR_CONST bool is_signed = Signed; static BOOST_FORCEINLINE void store(storage_type volatile& storage, storage_type v, memory_order order) BOOST_NOEXCEPT diff --git a/include/boost/atomic/detail/ops_gcc_x86.hpp b/include/boost/atomic/detail/ops_gcc_x86.hpp index 39bb40e..6633695 100644 --- a/include/boost/atomic/detail/ops_gcc_x86.hpp +++ b/include/boost/atomic/detail/ops_gcc_x86.hpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #if defined(BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG8B) || defined(BOOST_ATOMIC_DETAIL_X86_HAS_CMPXCHG16B) @@ -57,7 +57,7 @@ template< std::size_t Size, bool Signed, typename Derived > struct gcc_x86_operations : public gcc_x86_operations_base { - typedef typename make_storage_type< Size >::type storage_type; + typedef typename storage_traits< Size >::type storage_type; static BOOST_FORCEINLINE void store(storage_type volatile& storage, storage_type v, memory_order order) BOOST_NOEXCEPT { @@ -108,7 +108,7 @@ struct operations< 1u, Signed > : { typedef gcc_x86_operations< 1u, Signed, operations< 1u, Signed > > base_type; typedef typename base_type::storage_type storage_type; - typedef typename make_storage_type< 4u >::type temp_storage_type; + typedef typename storage_traits< 4u >::type temp_storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 1u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 1u; @@ -209,7 +209,7 @@ struct operations< 2u, Signed > : { typedef gcc_x86_operations< 2u, Signed, operations< 2u, Signed > > base_type; typedef typename base_type::storage_type storage_type; - typedef typename make_storage_type< 4u >::type temp_storage_type; + typedef typename storage_traits< 4u >::type temp_storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 2u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 2u; diff --git a/include/boost/atomic/detail/ops_gcc_x86_dcas.hpp b/include/boost/atomic/detail/ops_gcc_x86_dcas.hpp index da3e1e7..f2711f4 100644 --- a/include/boost/atomic/detail/ops_gcc_x86_dcas.hpp +++ b/include/boost/atomic/detail/ops_gcc_x86_dcas.hpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include @@ -44,7 +44,7 @@ namespace detail { template< bool Signed > struct gcc_dcas_x86 { - typedef typename make_storage_type< 8u >::type storage_type; + typedef typename storage_traits< 8u >::type storage_type; typedef uint32_t BOOST_ATOMIC_DETAIL_MAY_ALIAS aliasing_uint32_t; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 8u; @@ -384,7 +384,7 @@ struct gcc_dcas_x86 template< bool Signed > struct gcc_dcas_x86_64 { - typedef typename make_storage_type< 16u >::type storage_type; + typedef typename storage_traits< 16u >::type storage_type; typedef uint64_t BOOST_ATOMIC_DETAIL_MAY_ALIAS aliasing_uint64_t; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 16u; diff --git a/include/boost/atomic/detail/ops_linux_arm.hpp b/include/boost/atomic/detail/ops_linux_arm.hpp index 04a1b51..41c350c 100644 --- a/include/boost/atomic/detail/ops_linux_arm.hpp +++ b/include/boost/atomic/detail/ops_linux_arm.hpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include #include @@ -90,7 +90,7 @@ template< bool Signed > struct linux_arm_cas : public linux_arm_cas_base { - typedef typename make_storage_type< 4u >::type storage_type; + typedef typename storage_traits< 4u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = 4u; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = 4u; diff --git a/include/boost/atomic/detail/ops_msvc_arm.hpp b/include/boost/atomic/detail/ops_msvc_arm.hpp index 70968f1..fbae0a8 100644 --- a/include/boost/atomic/detail/ops_msvc_arm.hpp +++ b/include/boost/atomic/detail/ops_msvc_arm.hpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include #include @@ -104,10 +104,10 @@ template< std::size_t Size, bool Signed, typename Derived > struct msvc_arm_operations : public msvc_arm_operations_base { - typedef typename make_storage_type< Size >::type storage_type; + typedef typename storage_traits< Size >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = Size; - static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = make_storage_type< Size >::alignment; + static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = storage_traits< Size >::alignment; static BOOST_CONSTEXPR_OR_CONST bool is_signed = Signed; static BOOST_FORCEINLINE storage_type fetch_sub(storage_type volatile& storage, storage_type v, memory_order order) BOOST_NOEXCEPT diff --git a/include/boost/atomic/detail/ops_msvc_x86.hpp b/include/boost/atomic/detail/ops_msvc_x86.hpp index dd1f186..023b67f 100644 --- a/include/boost/atomic/detail/ops_msvc_x86.hpp +++ b/include/boost/atomic/detail/ops_msvc_x86.hpp @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include @@ -112,10 +112,10 @@ template< std::size_t Size, bool Signed, typename Derived > struct msvc_x86_operations : public msvc_x86_operations_base { - typedef typename make_storage_type< Size >::type storage_type; + typedef typename storage_traits< Size >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = Size; - static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = make_storage_type< Size >::alignment; + static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = storage_traits< Size >::alignment; static BOOST_CONSTEXPR_OR_CONST bool is_signed = Signed; static BOOST_FORCEINLINE void store(storage_type volatile& storage, storage_type v, memory_order order) BOOST_NOEXCEPT @@ -587,7 +587,7 @@ struct operations< 2u, Signed > : template< bool Signed > struct msvc_dcas_x86 { - typedef typename make_storage_type< 8u >::type storage_type; + typedef typename storage_traits< 8u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST bool full_cas_based = true; static BOOST_CONSTEXPR_OR_CONST bool is_always_lock_free = true; @@ -840,7 +840,7 @@ struct operations< 8u, Signed > : template< bool Signed > struct msvc_dcas_x86_64 { - typedef typename make_storage_type< 16u >::type storage_type; + typedef typename storage_traits< 16u >::type storage_type; static BOOST_CONSTEXPR_OR_CONST bool full_cas_based = true; static BOOST_CONSTEXPR_OR_CONST bool is_always_lock_free = true; diff --git a/include/boost/atomic/detail/ops_windows.hpp b/include/boost/atomic/detail/ops_windows.hpp index 81a436a..5170a64 100644 --- a/include/boost/atomic/detail/ops_windows.hpp +++ b/include/boost/atomic/detail/ops_windows.hpp @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include #include #include @@ -68,10 +68,10 @@ template< std::size_t Size, bool Signed, typename Derived > struct windows_operations : public windows_operations_base { - typedef typename make_storage_type< Size >::type storage_type; + typedef typename storage_traits< Size >::type storage_type; static BOOST_CONSTEXPR_OR_CONST std::size_t storage_size = Size; - static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = make_storage_type< Size >::alignment; + static BOOST_CONSTEXPR_OR_CONST std::size_t storage_alignment = storage_traits< Size >::alignment; static BOOST_CONSTEXPR_OR_CONST bool is_signed = Signed; static BOOST_FORCEINLINE void store(storage_type volatile& storage, storage_type v, memory_order order) BOOST_NOEXCEPT diff --git a/include/boost/atomic/detail/storage_type.hpp b/include/boost/atomic/detail/storage_traits.hpp similarity index 90% rename from include/boost/atomic/detail/storage_type.hpp rename to include/boost/atomic/detail/storage_traits.hpp index 566ec62..79f6d19 100644 --- a/include/boost/atomic/detail/storage_type.hpp +++ b/include/boost/atomic/detail/storage_traits.hpp @@ -8,13 +8,13 @@ * Copyright (c) 2013 - 2020 Andrey Semashev */ /*! - * \file atomic/detail/storage_type.hpp + * \file atomic/detail/storage_traits.hpp * * This header defines underlying types used as storage */ -#ifndef BOOST_ATOMIC_DETAIL_STORAGE_TYPE_HPP_INCLUDED_ -#define BOOST_ATOMIC_DETAIL_STORAGE_TYPE_HPP_INCLUDED_ +#ifndef BOOST_ATOMIC_DETAIL_STORAGE_TRAITS_HPP_INCLUDED_ +#define BOOST_ATOMIC_DETAIL_STORAGE_TRAITS_HPP_INCLUDED_ #include #include @@ -63,7 +63,7 @@ BOOST_FORCEINLINE void non_atomic_load(buffer_storage< Size > const volatile& fr } template< std::size_t Size > -struct make_storage_type +struct storage_traits { typedef buffer_storage< Size > type; @@ -72,7 +72,7 @@ struct make_storage_type }; template< > -struct make_storage_type< 1u > +struct storage_traits< 1u > { typedef boost::uint8_t BOOST_ATOMIC_DETAIL_MAY_ALIAS type; @@ -80,7 +80,7 @@ struct make_storage_type< 1u > }; template< > -struct make_storage_type< 2u > +struct storage_traits< 2u > { typedef boost::uint16_t BOOST_ATOMIC_DETAIL_MAY_ALIAS type; @@ -88,7 +88,7 @@ struct make_storage_type< 2u > }; template< > -struct make_storage_type< 4u > +struct storage_traits< 4u > { typedef boost::uint32_t BOOST_ATOMIC_DETAIL_MAY_ALIAS type; @@ -96,7 +96,7 @@ struct make_storage_type< 4u > }; template< > -struct make_storage_type< 8u > +struct storage_traits< 8u > { typedef boost::uint64_t BOOST_ATOMIC_DETAIL_MAY_ALIAS type; @@ -106,7 +106,7 @@ struct make_storage_type< 8u > #if defined(BOOST_HAS_INT128) template< > -struct make_storage_type< 16u > +struct storage_traits< 16u > { typedef boost::uint128_type BOOST_ATOMIC_DETAIL_MAY_ALIAS type; @@ -143,7 +143,7 @@ BOOST_FORCEINLINE void non_atomic_load(storage128_t const volatile& from, storag } template< > -struct make_storage_type< 16u > +struct storage_traits< 16u > { typedef storage128_t type; @@ -163,4 +163,4 @@ struct storage_size_of } // namespace atomics } // namespace boost -#endif // BOOST_ATOMIC_DETAIL_STORAGE_TYPE_HPP_INCLUDED_ +#endif // BOOST_ATOMIC_DETAIL_STORAGE_TRAITS_HPP_INCLUDED_