From 10e7a8e8a4e3100bd0a46ce08e8f4d2fa96060e8 Mon Sep 17 00:00:00 2001 From: Adam Nemecek Date: Mon, 4 Jun 2018 08:06:50 -0700 Subject: [PATCH] #pragma once --- include/angle.h | 6 +----- include/biquaternion.h | 6 +----- include/bounded.h | 5 +---- include/bounded_angles.h | 7 +------ include/choice.h | 5 +---- include/constant.h | 6 +----- include/constants.h | 6 +----- include/conversion.h | 5 +---- include/dual.h | 5 +---- include/dual_quaternion.h | 6 +----- include/equality.h | 6 +----- include/interval.h | 5 +---- include/limits.h | 7 +------ include/natural.h | 5 +---- include/natural_interval.h | 6 +----- include/quaternion.h | 6 +----- include/rational.h | 4 +--- include/rounded.h | 5 +---- include/scomplex.h | 5 +---- include/split_biquaternion.h | 5 +---- include/traits.h | 5 +---- 21 files changed, 21 insertions(+), 95 deletions(-) diff --git a/include/angle.h b/include/angle.h index 5b53680..8b724e1 100644 --- a/include/angle.h +++ b/include/angle.h @@ -8,8 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_ANGLE_H_ -#define AM_NUMERIC_ANGLE_H_ +#pragma once #include #include @@ -1360,6 +1359,3 @@ max(const inclination_interval&) noexcept { } // namespace num } // namespace am - - -#endif diff --git a/include/biquaternion.h b/include/biquaternion.h index d575256..a3074c8 100644 --- a/include/biquaternion.h +++ b/include/biquaternion.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_BIQUATERNION_H_ -#define AM_NUMERIC_BIQUATERNION_H_ - +#pragma once #include @@ -153,5 +151,3 @@ make_biquaternion(const quaternion& q) } // namespace num } // namespace am - -#endif diff --git a/include/bounded.h b/include/bounded.h index fce7782..2a87dbc 100644 --- a/include/bounded.h +++ b/include/bounded.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_BOUNDED_H_ -#define AM_NUMERIC_BOUNDED_H_ - +#pragma once #include #include @@ -1208,4 +1206,3 @@ class numeric_limits> } // namespace std -#endif diff --git a/include/bounded_angles.h b/include/bounded_angles.h index 53932e7..9d2d7f4 100644 --- a/include/bounded_angles.h +++ b/include/bounded_angles.h @@ -8,10 +8,7 @@ * *****************************************************************************/ - -#ifndef AM_NUMERIC_ANGLES_H_ -#define AM_NUMERIC_ANGLES_H_ - +#pragma once #include "angle.h" #include "bounded.h" @@ -100,5 +97,3 @@ using wrapped_gons = wrapped_angle>; } // namespace num } // namespace am - -#endif diff --git a/include/choice.h b/include/choice.h index 9aeaa72..e7474cc 100644 --- a/include/choice.h +++ b/include/choice.h @@ -8,8 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_CHOICE_H_ -#define AM_NUMERIC_CHOICE_H_ +#pragma once #include #include @@ -492,5 +491,3 @@ class numeric_limits> } // namespace std - -#endif diff --git a/include/constant.h b/include/constant.h index d49a028..1b72f53 100644 --- a/include/constant.h +++ b/include/constant.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_CONSTANT_H_ -#define AM_NUMERIC_CONSTANT_H_ - +#pragma once #include "traits.h" @@ -104,5 +102,3 @@ make_constant(T&& x) } // namespace num } // namespace am - -#endif diff --git a/include/constants.h b/include/constants.h index 44c7563..12481bd 100644 --- a/include/constants.h +++ b/include/constants.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_CONSTANTS_H_ -#define AM_NUMERIC_CONSTANTS_H_ - +#pragma once #include @@ -109,5 +107,3 @@ constexpr long double operator "" _e(unsigned long long int x) } // namespace num } // namespace am - -#endif diff --git a/include/conversion.h b/include/conversion.h index 21c39b0..6df338b 100644 --- a/include/conversion.h +++ b/include/conversion.h @@ -8,8 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_CONVERSION_H_ -#define AM_NUMERIC_CONVERSION_H_ +#pragma once #include #include @@ -384,5 +383,3 @@ to_fixed_string(T number, int precision, int intDigits, } // namespace num } // namespace am - -#endif diff --git a/include/dual.h b/include/dual.h index e3e68c5..46a3a0e 100644 --- a/include/dual.h +++ b/include/dual.h @@ -8,8 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_DUAL_H_ -#define AM_NUMERIC_DUAL_H_ +#pragma once #include #include @@ -1255,5 +1254,3 @@ struct common_numeric_type,dual> } // namespace num } // namespace am - -#endif diff --git a/include/dual_quaternion.h b/include/dual_quaternion.h index 89f5516..b131ce4 100644 --- a/include/dual_quaternion.h +++ b/include/dual_quaternion.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_DUAL_QUATERNION_H_ -#define AM_NUMERIC_DUAL_QUATERNION_H_ - +#pragma once #include "quaternion.h" #include "dual.h" @@ -169,5 +167,3 @@ make_dual(const quaternion& q) } // namespace num } // namespace am - -#endif diff --git a/include/equality.h b/include/equality.h index 772740e..a336361 100644 --- a/include/equality.h +++ b/include/equality.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_EQUALITY_H_ -#define AM_NUMERIC_EQUALITY_H_ - +#pragma once #include #include @@ -186,5 +184,3 @@ approx_equal(InputIter begin1, InputIter end1, } // namespace num } // namespace am - -#endif diff --git a/include/interval.h b/include/interval.h index dcd97d3..c339c35 100644 --- a/include/interval.h +++ b/include/interval.h @@ -8,8 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_RANGE_H_ -#define AM_NUMERIC_RANGE_H_ +#pragma once #include #include @@ -1200,5 +1199,3 @@ consolidate_intervals(std::vector>& ivals, const interval& toAdd) } // namespace num } //namespace am - -#endif diff --git a/include/limits.h b/include/limits.h index 286a910..690f713 100644 --- a/include/limits.h +++ b/include/limits.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_LIMITS_H_ -#define AM_NUMERIC_LIMITS_H_ - +#pragma once #include #include @@ -124,6 +122,3 @@ constexpr T infinity = detail::infinity::value(); } // namespace num } // namespace am - - -#endif diff --git a/include/natural.h b/include/natural.h index ba33d33..56a1709 100644 --- a/include/natural.h +++ b/include/natural.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_NATURAL_H_ -#define AM_NUMERIC_NATURAL_H_ - +#pragma once #include #include @@ -895,4 +893,3 @@ class numeric_limits> } // namespace std -#endif diff --git a/include/natural_interval.h b/include/natural_interval.h index 7685b7f..fa0975f 100644 --- a/include/natural_interval.h +++ b/include/natural_interval.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_NATURAL_INTERVAL_H_ -#define AM_NUMERIC_NATURAL_INTERVAL_H_ - +#pragma once #include "natural.h" @@ -147,5 +145,3 @@ max(const natural_interval& i) noexcept -> decltype(i.max()) } // namespace num } // namespace am - -#endif diff --git a/include/quaternion.h b/include/quaternion.h index 23bf32d..b40cf2d 100644 --- a/include/quaternion.h +++ b/include/quaternion.h @@ -8,8 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_QUATERNION_H_ -#define AM_NUMERIC_QUATERNION_H_ +#pragma once #include #include @@ -955,6 +954,3 @@ pow(const quaternion& q, const T2& exponent) } // namespace num } // namespace am - - -#endif diff --git a/include/rational.h b/include/rational.h index 6c1f3e4..97ab023 100644 --- a/include/rational.h +++ b/include/rational.h @@ -8,8 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_RATIONAL_H_ -#define AM_NUMERIC_RATIONAL_H_ +#pragma once #include #include @@ -871,4 +870,3 @@ class numeric_limits> } // namespace std -#endif diff --git a/include/rounded.h b/include/rounded.h index 4e65ae8..6ae1ac3 100644 --- a/include/rounded.h +++ b/include/rounded.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_ROUNDED_H_ -#define AM_NUMERIC_ROUNDED_H_ - +#pragma once #include #include @@ -881,4 +879,3 @@ class numeric_limits> } // namespace std -#endif diff --git a/include/scomplex.h b/include/scomplex.h index 0fcee03..a9beddc 100644 --- a/include/scomplex.h +++ b/include/scomplex.h @@ -8,8 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_SPLIT_COMPLEX_H_ -#define AM_NUMERIC_SPLIT_COMPLEX_H_ +#pragma once #include #include @@ -1125,5 +1124,3 @@ struct common_numeric_type,scomplex> } // namespace num } // namespace am - -#endif diff --git a/include/split_biquaternion.h b/include/split_biquaternion.h index 7c12145..98dbb83 100644 --- a/include/split_biquaternion.h +++ b/include/split_biquaternion.h @@ -8,9 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_SPLIT_BIQUATERNION_H_ -#define AM_NUMERIC_SPLIT_BIQUATERNION_H_ - +#pragma once #include "quaternion.h" #include "scomplex.h" @@ -163,4 +161,3 @@ make_split_biquaternion(const quaternion& q) } // namespace num } // namespace am -#endif diff --git a/include/traits.h b/include/traits.h index 1128d48..f30a6c4 100644 --- a/include/traits.h +++ b/include/traits.h @@ -8,8 +8,7 @@ * *****************************************************************************/ -#ifndef AM_NUMERIC_TRAITS_H_ -#define AM_NUMERIC_TRAITS_H_ +#pragma once #include #include @@ -609,5 +608,3 @@ struct is_interval : } // namespace num } // namespace am - -#endif