Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#pragma once #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions include/angle.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_ANGLE_H_
#define AM_NUMERIC_ANGLE_H_
#pragma once

#include <cmath>
#include <utility>
Expand Down Expand Up @@ -1360,6 +1359,3 @@ max(const inclination_interval<T>&) noexcept {

} // namespace num
} // namespace am


#endif
6 changes: 1 addition & 5 deletions include/biquaternion.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_BIQUATERNION_H_
#define AM_NUMERIC_BIQUATERNION_H_

#pragma once

#include <complex>

Expand Down Expand Up @@ -153,5 +151,3 @@ make_biquaternion(const quaternion<T>& q)
} // namespace num
} // namespace am


#endif
5 changes: 1 addition & 4 deletions include/bounded.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_BOUNDED_H_
#define AM_NUMERIC_BOUNDED_H_

#pragma once

#include <cmath>
#include <cstdint>
Expand Down Expand Up @@ -1208,4 +1206,3 @@ class numeric_limits<am::num::bounded<T,B,P>>

} // namespace std

#endif
7 changes: 1 addition & 6 deletions include/bounded_angles.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
*
*****************************************************************************/


#ifndef AM_NUMERIC_ANGLES_H_
#define AM_NUMERIC_ANGLES_H_

#pragma once

#include "angle.h"
#include "bounded.h"
Expand Down Expand Up @@ -100,5 +97,3 @@ using wrapped_gons = wrapped_angle<gons_turn<T>>;

} // namespace num
} // namespace am

#endif
5 changes: 1 addition & 4 deletions include/choice.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_CHOICE_H_
#define AM_NUMERIC_CHOICE_H_
#pragma once

#include <type_traits>
#include <limits>
Expand Down Expand Up @@ -492,5 +491,3 @@ class numeric_limits<am::num::choice<T,n>>


} // namespace std

#endif
6 changes: 1 addition & 5 deletions include/constant.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_CONSTANT_H_
#define AM_NUMERIC_CONSTANT_H_

#pragma once

#include "traits.h"

Expand Down Expand Up @@ -104,5 +102,3 @@ make_constant(T&& x)
} // namespace num
} // namespace am


#endif
6 changes: 1 addition & 5 deletions include/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_CONSTANTS_H_
#define AM_NUMERIC_CONSTANTS_H_

#pragma once

#include <cstdint>

Expand Down Expand Up @@ -109,5 +107,3 @@ constexpr long double operator "" _e(unsigned long long int x)
} // namespace num
} // namespace am


#endif
5 changes: 1 addition & 4 deletions include/conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_CONVERSION_H_
#define AM_NUMERIC_CONVERSION_H_
#pragma once

#include <cstdlib>
#include <cstring>
Expand Down Expand Up @@ -384,5 +383,3 @@ to_fixed_string(T number, int precision, int intDigits,
} // namespace num
} // namespace am


#endif
5 changes: 1 addition & 4 deletions include/dual.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_DUAL_H_
#define AM_NUMERIC_DUAL_H_
#pragma once

#include <cmath>
#include <cfloat>
Expand Down Expand Up @@ -1255,5 +1254,3 @@ struct common_numeric_type<dual<T1>,dual<T2>>
} // namespace num
} // namespace am


#endif
6 changes: 1 addition & 5 deletions include/dual_quaternion.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_DUAL_QUATERNION_H_
#define AM_NUMERIC_DUAL_QUATERNION_H_

#pragma once

#include "quaternion.h"
#include "dual.h"
Expand Down Expand Up @@ -169,5 +167,3 @@ make_dual(const quaternion<T>& q)
} // namespace num
} // namespace am


#endif
6 changes: 1 addition & 5 deletions include/equality.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_EQUALITY_H_
#define AM_NUMERIC_EQUALITY_H_

#pragma once

#include <complex>
#include <type_traits>
Expand Down Expand Up @@ -186,5 +184,3 @@ approx_equal(InputIter begin1, InputIter end1,
} // namespace num
} // namespace am


#endif
5 changes: 1 addition & 4 deletions include/interval.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_RANGE_H_
#define AM_NUMERIC_RANGE_H_
#pragma once

#include <type_traits>
#include <utility>
Expand Down Expand Up @@ -1200,5 +1199,3 @@ consolidate_intervals(std::vector<interval<T>>& ivals, const interval<T>& toAdd)
} // namespace num
} //namespace am


#endif
7 changes: 1 addition & 6 deletions include/limits.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_LIMITS_H_
#define AM_NUMERIC_LIMITS_H_

#pragma once

#include <limits>
#include <cmath>
Expand Down Expand Up @@ -124,6 +122,3 @@ constexpr T infinity = detail::infinity<T>::value();

} // namespace num
} // namespace am


#endif
5 changes: 1 addition & 4 deletions include/natural.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_NATURAL_H_
#define AM_NUMERIC_NATURAL_H_

#pragma once

#include <cstdint>
#include <cmath>
Expand Down Expand Up @@ -895,4 +893,3 @@ class numeric_limits<am::num::natural<T>>

} // namespace std

#endif
6 changes: 1 addition & 5 deletions include/natural_interval.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_NATURAL_INTERVAL_H_
#define AM_NUMERIC_NATURAL_INTERVAL_H_

#pragma once

#include "natural.h"

Expand Down Expand Up @@ -147,5 +145,3 @@ max(const natural_interval<T>& i) noexcept -> decltype(i.max())
} // namespace num
} // namespace am


#endif
6 changes: 1 addition & 5 deletions include/quaternion.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_QUATERNION_H_
#define AM_NUMERIC_QUATERNION_H_
#pragma once

#include <cmath>
#include <random>
Expand Down Expand Up @@ -955,6 +954,3 @@ pow(const quaternion<T1>& q, const T2& exponent)

} // namespace num
} // namespace am


#endif
4 changes: 1 addition & 3 deletions include/rational.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_RATIONAL_H_
#define AM_NUMERIC_RATIONAL_H_
#pragma once

#include <cmath>
#include <cfloat>
Expand Down Expand Up @@ -871,4 +870,3 @@ class numeric_limits<am::num::rational<T>>

} // namespace std

#endif
5 changes: 1 addition & 4 deletions include/rounded.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_ROUNDED_H_
#define AM_NUMERIC_ROUNDED_H_

#pragma once

#include <cmath>
#include <cstdint>
Expand Down Expand Up @@ -881,4 +879,3 @@ class numeric_limits<am::num::rounded<T,R>>

} // namespace std

#endif
5 changes: 1 addition & 4 deletions include/scomplex.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_SPLIT_COMPLEX_H_
#define AM_NUMERIC_SPLIT_COMPLEX_H_
#pragma once

#include <cmath>
#include <cfloat>
Expand Down Expand Up @@ -1125,5 +1124,3 @@ struct common_numeric_type<scomplex<T1>,scomplex<T2>>

} // namespace num
} // namespace am

#endif
5 changes: 1 addition & 4 deletions include/split_biquaternion.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_SPLIT_BIQUATERNION_H_
#define AM_NUMERIC_SPLIT_BIQUATERNION_H_

#pragma once

#include "quaternion.h"
#include "scomplex.h"
Expand Down Expand Up @@ -163,4 +161,3 @@ make_split_biquaternion(const quaternion<T>& q)
} // namespace num
} // namespace am

#endif
5 changes: 1 addition & 4 deletions include/traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
*
*****************************************************************************/

#ifndef AM_NUMERIC_TRAITS_H_
#define AM_NUMERIC_TRAITS_H_
#pragma once

#include <type_traits>
#include <utility>
Expand Down Expand Up @@ -609,5 +608,3 @@ struct is_interval<T> :

} // namespace num
} // namespace am

#endif