diff --git a/test/std/iterators/iterator.primitives/iterator.traits/empty.pass.cpp b/test/std/iterators/iterator.primitives/iterator.traits/empty.pass.cpp index e48e44b37..57d4a3834 100644 --- a/test/std/iterators/iterator.primitives/iterator.traits/empty.pass.cpp +++ b/test/std/iterators/iterator.primitives/iterator.traits/empty.pass.cpp @@ -20,7 +20,7 @@ struct not_an_iterator { }; -template +template struct has_value_type { private: @@ -28,7 +28,7 @@ private: template static two test(...); template static char test(typename _Up::value_type* = 0); public: - static const bool value = sizeof(test<_Tp>(0)) == 1; + static const bool value = sizeof(test(0)) == 1; }; int main() diff --git a/test/std/language.support/support.limits/limits/numeric.limits.members/const_data_members.pass.cpp b/test/std/language.support/support.limits/limits/numeric.limits.members/const_data_members.pass.cpp index 50cfc4674..6a46c370e 100644 --- a/test/std/language.support/support.limits/limits/numeric.limits.members/const_data_members.pass.cpp +++ b/test/std/language.support/support.limits/limits/numeric.limits.members/const_data_members.pass.cpp @@ -37,8 +37,8 @@ round_style */ -template -void test(const _Tp &) {} +template +void test(const T &) {} #define TEST_NUMERIC_LIMITS(type) \ test(std::numeric_limits::is_specialized); \ diff --git a/test/std/localization/locale.categories/category.ctype/ctype_base.pass.cpp b/test/std/localization/locale.categories/category.ctype/ctype_base.pass.cpp index 06c171f56..c260e34e3 100644 --- a/test/std/localization/locale.categories/category.ctype/ctype_base.pass.cpp +++ b/test/std/localization/locale.categories/category.ctype/ctype_base.pass.cpp @@ -36,8 +36,8 @@ #include #include -template -void test(const _Tp &) {} +template +void test(const T &) {} int main() { diff --git a/test/std/localization/locale.categories/category.monetary/locale.moneypunct/types.pass.cpp b/test/std/localization/locale.categories/category.monetary/locale.moneypunct/types.pass.cpp index 323d856a3..8998bf004 100644 --- a/test/std/localization/locale.categories/category.monetary/locale.moneypunct/types.pass.cpp +++ b/test/std/localization/locale.categories/category.monetary/locale.moneypunct/types.pass.cpp @@ -27,8 +27,8 @@ #include #include -template -void test(const _Tp &) {} +template +void test(const T &) {} int main() { diff --git a/test/std/localization/locales/locale/locale.types/locale.category/category.pass.cpp b/test/std/localization/locales/locale/locale.types/locale.category/category.pass.cpp index 8fc311a5b..dbab8212a 100644 --- a/test/std/localization/locales/locale/locale.types/locale.category/category.pass.cpp +++ b/test/std/localization/locales/locale/locale.types/locale.category/category.pass.cpp @@ -20,8 +20,8 @@ #include #include -template -void test(const _Tp &) {} +template +void test(const T &) {} int main() diff --git a/test/std/numerics/numeric.ops/transform.exclusive.scan/transform_exclusive_scan_init_bop_uop.pass.cpp b/test/std/numerics/numeric.ops/transform.exclusive.scan/transform_exclusive_scan_init_bop_uop.pass.cpp index d96d4d6ec..2226ac723 100644 --- a/test/std/numerics/numeric.ops/transform.exclusive.scan/transform_exclusive_scan_init_bop_uop.pass.cpp +++ b/test/std/numerics/numeric.ops/transform.exclusive.scan/transform_exclusive_scan_init_bop_uop.pass.cpp @@ -25,20 +25,20 @@ #include "test_iterators.h" -template -struct identity : std::unary_function<_Tp, _Tp> +template +struct identity : std::unary_function { - constexpr const _Tp& operator()(const _Tp& __x) const { return __x;} + constexpr const T& operator()(const T& __x) const { return __x;} }; template <> struct identity { - template - constexpr auto operator()(_Tp&& __x) const - _NOEXCEPT_(noexcept(_VSTD::forward<_Tp>(__x))) - -> decltype (_VSTD::forward<_Tp>(__x)) - { return _VSTD::forward<_Tp>(__x); } + template + constexpr auto operator()(T&& __x) const + _NOEXCEPT_(noexcept(_VSTD::forward(__x))) + -> decltype (_VSTD::forward(__x)) + { return _VSTD::forward(__x); } }; template diff --git a/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop.pass.cpp b/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop.pass.cpp index 62fba023e..246467bfc 100644 --- a/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop.pass.cpp +++ b/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop.pass.cpp @@ -25,20 +25,20 @@ #include "test_iterators.h" -template -struct identity : std::unary_function<_Tp, _Tp> +template +struct identity : std::unary_function { - constexpr const _Tp& operator()(const _Tp& __x) const { return __x;} + constexpr const T& operator()(const T& __x) const { return __x;} }; template <> struct identity { - template - constexpr auto operator()(_Tp&& __x) const - _NOEXCEPT_(noexcept(_VSTD::forward<_Tp>(__x))) - -> decltype (_VSTD::forward<_Tp>(__x)) - { return _VSTD::forward<_Tp>(__x); } + template + constexpr auto operator()(T&& __x) const + _NOEXCEPT_(noexcept(_VSTD::forward(__x))) + -> decltype (_VSTD::forward(__x)) + { return _VSTD::forward(__x); } }; template diff --git a/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop_init.pass.cpp b/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop_init.pass.cpp index 9c7178bc3..453e0367a 100644 --- a/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop_init.pass.cpp +++ b/test/std/numerics/numeric.ops/transform.inclusive.scan/transform_inclusive_scan_bop_uop_init.pass.cpp @@ -25,20 +25,20 @@ #include "test_iterators.h" -template -struct identity : std::unary_function<_Tp, _Tp> +template +struct identity : std::unary_function { - constexpr const _Tp& operator()(const _Tp& __x) const { return __x;} + constexpr const T& operator()(const T& __x) const { return __x;} }; template <> struct identity { - template - constexpr auto operator()(_Tp&& __x) const - _NOEXCEPT_(noexcept(_VSTD::forward<_Tp>(__x))) - -> decltype (_VSTD::forward<_Tp>(__x)) - { return _VSTD::forward<_Tp>(__x); } + template + constexpr auto operator()(T&& __x) const + _NOEXCEPT_(noexcept(_VSTD::forward(__x))) + -> decltype (_VSTD::forward(__x)) + { return _VSTD::forward(__x); } }; template diff --git a/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_init_bop_uop.pass.cpp b/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_init_bop_uop.pass.cpp index 55c897d51..b648aa528 100644 --- a/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_init_bop_uop.pass.cpp +++ b/test/std/numerics/numeric.ops/transform.reduce/transform_reduce_iter_iter_init_bop_uop.pass.cpp @@ -21,34 +21,34 @@ #include "test_iterators.h" -template -struct identity : std::unary_function<_Tp, _Tp> +template +struct identity : std::unary_function { - constexpr const _Tp& operator()(const _Tp& __x) const { return __x;} + constexpr const T& operator()(const T& __x) const { return __x;} }; template <> struct identity { - template - constexpr auto operator()(_Tp&& __x) const - _NOEXCEPT_(noexcept(_VSTD::forward<_Tp>(__x))) - -> decltype (_VSTD::forward<_Tp>(__x)) - { return _VSTD::forward<_Tp>(__x); } + template + constexpr auto operator()(T&& __x) const + _NOEXCEPT_(noexcept(_VSTD::forward(__x))) + -> decltype (_VSTD::forward(__x)) + { return _VSTD::forward(__x); } }; -template +template struct twice { - constexpr const _Tp operator()(const _Tp& __x) const noexcept { return 2 * __x; } + constexpr const T operator()(const T& __x) const noexcept { return 2 * __x; } }; template <> struct twice { - template - constexpr auto operator()(const _Tp& __x) const + template + constexpr auto operator()(const T& __x) const _NOEXCEPT_(noexcept(2 * __x)) -> decltype (2 * __x) { return 2 * __x; } diff --git a/test/std/numerics/rand/rand.adapt/rand.adapt.disc/values.pass.cpp b/test/std/numerics/rand/rand.adapt/rand.adapt.disc/values.pass.cpp index 8cc523e2f..5666fdce2 100644 --- a/test/std/numerics/rand/rand.adapt/rand.adapt.disc/values.pass.cpp +++ b/test/std/numerics/rand/rand.adapt/rand.adapt.disc/values.pass.cpp @@ -28,8 +28,8 @@ #include "test_macros.h" -template -void where(const _Tp &) {} +template +void where(const T &) {} void test1() diff --git a/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/values.pass.cpp b/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/values.pass.cpp index c592b6df2..ac3f1d711 100644 --- a/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/values.pass.cpp +++ b/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/values.pass.cpp @@ -27,8 +27,8 @@ #include "test_macros.h" -template -void where(const _Tp &) {} +template +void where(const T &) {} void test1() diff --git a/test/std/numerics/rand/rand.eng/rand.eng.lcong/values.pass.cpp b/test/std/numerics/rand/rand.eng/rand.eng.lcong/values.pass.cpp index 2080ac5f4..72d5854b7 100644 --- a/test/std/numerics/rand/rand.eng/rand.eng.lcong/values.pass.cpp +++ b/test/std/numerics/rand/rand.eng/rand.eng.lcong/values.pass.cpp @@ -27,8 +27,8 @@ #include "test_macros.h" -template -void where(const _Tp &) {} +template +void where(const T &) {} template void diff --git a/test/std/numerics/rand/rand.eng/rand.eng.mers/values.pass.cpp b/test/std/numerics/rand/rand.eng/rand.eng.mers/values.pass.cpp index f7834afd4..08d99b3d8 100644 --- a/test/std/numerics/rand/rand.eng/rand.eng.mers/values.pass.cpp +++ b/test/std/numerics/rand/rand.eng/rand.eng.mers/values.pass.cpp @@ -42,8 +42,8 @@ #include "test_macros.h" -template -void where(const _Tp &) {} +template +void where(const T &) {} void test1() diff --git a/test/std/numerics/rand/rand.eng/rand.eng.sub/values.pass.cpp b/test/std/numerics/rand/rand.eng/rand.eng.sub/values.pass.cpp index 6b8b4eed9..02f8b222d 100644 --- a/test/std/numerics/rand/rand.eng/rand.eng.sub/values.pass.cpp +++ b/test/std/numerics/rand/rand.eng/rand.eng.sub/values.pass.cpp @@ -30,8 +30,8 @@ #include "test_macros.h" -template -void where(const _Tp &) {} +template +void where(const T &) {} void test1() diff --git a/test/std/re/re.regex/re.regex.const/constants.pass.cpp b/test/std/re/re.regex/re.regex.const/constants.pass.cpp index e699de819..42bc526ae 100644 --- a/test/std/re/re.regex/re.regex.const/constants.pass.cpp +++ b/test/std/re/re.regex/re.regex.const/constants.pass.cpp @@ -29,8 +29,8 @@ #include #include "test_macros.h" -template -void where(const _Tp &) {} +template +void where(const T &) {} template void diff --git a/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp b/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp index b85f439ba..19de6f7f0 100644 --- a/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp +++ b/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp @@ -11,7 +11,7 @@ #include #include -template +template struct is_transparent { private: @@ -19,7 +19,7 @@ private: template static __two __test(...); template static char __test(typename _Up::is_transparent* = 0); public: - static const bool value = sizeof(__test<_Tp>(0)) == 1; + static const bool value = sizeof(__test(0)) == 1; }; diff --git a/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp b/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp index db7168c44..0b9796027 100644 --- a/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp +++ b/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp @@ -11,7 +11,7 @@ #include #include -template +template struct is_transparent { private: @@ -19,7 +19,7 @@ private: template static __two __test(...); template static char __test(typename _Up::is_transparent* = 0); public: - static const bool value = sizeof(__test<_Tp>(0)) == 1; + static const bool value = sizeof(__test(0)) == 1; }; diff --git a/test/std/utilities/function.objects/comparisons/transparent.pass.cpp b/test/std/utilities/function.objects/comparisons/transparent.pass.cpp index f353fe7a7..40b0f5e07 100644 --- a/test/std/utilities/function.objects/comparisons/transparent.pass.cpp +++ b/test/std/utilities/function.objects/comparisons/transparent.pass.cpp @@ -11,7 +11,7 @@ #include #include -template +template struct is_transparent { private: @@ -19,7 +19,7 @@ private: template static __two __test(...); template static char __test(typename _Up::is_transparent* = 0); public: - static const bool value = sizeof(__test<_Tp>(0)) == 1; + static const bool value = sizeof(__test(0)) == 1; }; diff --git a/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp b/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp index 00e513ec5..b915863f2 100644 --- a/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp +++ b/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp @@ -11,7 +11,7 @@ #include #include -template +template struct is_transparent { private: @@ -19,7 +19,7 @@ private: template static __two __test(...); template static char __test(typename _Up::is_transparent* = 0); public: - static const bool value = sizeof(__test<_Tp>(0)) == 1; + static const bool value = sizeof(__test(0)) == 1; }; diff --git a/test/std/utilities/time/time.clock/time.clock.hires/consistency.pass.cpp b/test/std/utilities/time/time.clock/time.clock.hires/consistency.pass.cpp index 24847dd70..2f8a707bf 100644 --- a/test/std/utilities/time/time.clock/time.clock.hires/consistency.pass.cpp +++ b/test/std/utilities/time/time.clock/time.clock.hires/consistency.pass.cpp @@ -24,8 +24,8 @@ #include -template -void test(const _Tp &) {} +template +void test(const T &) {} int main() { diff --git a/test/std/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp b/test/std/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp index cdb38dfce..4458d6f21 100644 --- a/test/std/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp +++ b/test/std/utilities/time/time.clock/time.clock.steady/consistency.pass.cpp @@ -26,8 +26,8 @@ #include -template -void test(const _Tp &) {} +template +void test(const T &) {} int main() { diff --git a/test/std/utilities/time/time.clock/time.clock.system/consistency.pass.cpp b/test/std/utilities/time/time.clock/time.clock.system/consistency.pass.cpp index dfc08a3bc..deb4615fa 100644 --- a/test/std/utilities/time/time.clock/time.clock.system/consistency.pass.cpp +++ b/test/std/utilities/time/time.clock/time.clock.system/consistency.pass.cpp @@ -24,8 +24,8 @@ #include -template -void test(const _Tp &) {} +template +void test(const T &) {} int main() { diff --git a/test/support/any_helpers.h b/test/support/any_helpers.h index a720ecd7c..afc85c97f 100644 --- a/test/support/any_helpers.h +++ b/test/support/any_helpers.h @@ -24,13 +24,13 @@ namespace std { namespace experimental {} } #define RTTI_ASSERT(X) #endif -template +template struct IsSmallObject : public std::integral_constant::value - % std::alignment_of<_Tp>::value == 0 - && std::is_nothrow_move_constructible<_Tp>::value + % std::alignment_of::value == 0 + && std::is_nothrow_move_constructible::value > {}; diff --git a/test/support/experimental_any_helpers.h b/test/support/experimental_any_helpers.h index 9c906e6bf..f7bc0e33e 100644 --- a/test/support/experimental_any_helpers.h +++ b/test/support/experimental_any_helpers.h @@ -22,13 +22,13 @@ #define RTTI_ASSERT(X) #endif -template +template struct IsSmallObject : public std::integral_constant::value - % std::alignment_of<_Tp>::value == 0 - && std::is_nothrow_move_constructible<_Tp>::value + % std::alignment_of::value == 0 + && std::is_nothrow_move_constructible::value > {};