5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MATH_PI_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_MATH_PI_HPP_
11#include "arene/base/stdlib_choice/enable_if.hpp"
12#include "arene/base/stdlib_choice/is_same.hpp"
27template <
typename Type>
28auto instantiation_of_unspecialized_value() -> Type;
33template <
typename Type,
typename = constra
ints<>>
34extern constexpr Type pi_v{pi_detail::instantiation_of_unspecialized_value<Type>()};
37template <
typename Type>
38extern constexpr float pi_v<Type, constraints<std::enable_if_t<std::is_same<Type, float>::value>>>{
39 3.141592653589793238462643383279F
43template <
typename Type>
44extern constexpr double pi_v<Type, constraints<std::enable_if_t<std::is_same<Type, double>::value>>>{
45 3.141592653589793238462643383279
53template <
typename Type>
54extern constexpr Type
pi_v{pi_detail::pi_v<Type>};
#define ARENE_MAYBE_UNUSED
An alias for [[maybe_unused]] , or a no-op if the attribute is not supported.
Definition maybe_unused.hpp:25
Definition arithmetic_identities.hpp:13
constexpr Type pi_v
The value of Pi, in the specified floating point type. Type must be float or double ,...
Definition accumulate.hpp:37
Definition accumulate.hpp:36