Начало
This commit is contained in:
10
include/pow/pow.hpp
Normal file
10
include/pow/pow.hpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <cmath>
|
||||
#include <type_traits>
|
||||
|
||||
template < typename T >
|
||||
T pow(T v1, T v2) {
|
||||
static_assert( std::is_arithmetic< T >::value, "Arithmetic type is required." );
|
||||
return (pow(v1, v2));
|
||||
}
|
Reference in New Issue
Block a user