Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::ops::Pow< T > Struct Template Reference

幂运算变换器。 More...

#include <gextra.h>

Public Member Functions

template<class U>
auto operator() (U x) const -> decltype(std::pow(x, exponent))
 计算输入值的指定次幂。

Public Attributes

T exponent

Detailed Description

template<class T>
struct console::ops::Pow< T >

幂运算变换器。

Template Parameters
T指数类型。

Member Function Documentation

◆ operator()()

template<class T>
template<class U>
auto console::ops::Pow< T >::operator() ( U x) const -> decltype(std::pow(x, exponent))
inline

计算输入值的指定次幂。

Parameters
x输入值。
Returns
std::pow(x, exponent)。

Member Data Documentation

◆ exponent

template<class T>
T console::ops::Pow< T >::exponent

The documentation for this struct was generated from the following file: