WPILibC++ 2024.3.2
pow.hpp File Reference
#include <cmath>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  gcem
 
namespace  gcem::internal
 

Functions

template<typename T >
constexpr T gcem::internal::pow_dbl (const T base, const T exp_term) noexcept
 
template<typename T1 , typename T2 , typename TC = common_t<T1,T2>, typename std::enable_if<!std::is_integral< T2 >::value >::type * = nullptr>
constexpr TC gcem::internal::pow_check (const T1 base, const T2 exp_term) noexcept
 
template<typename T1 , typename T2 >
constexpr common_t< T1, T2 > gcem::pow (const T1 base, const T2 exp_term) noexcept
 Compile-time power function. More...