Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::ops::power_of_two_t Struct Reference

2的幂次谓词。 More...

#include <gextra.h>

Public Member Functions

template<class Int>
bool operator() (Int n) const
 判断输入值是否为2的幂次。

Detailed Description

2的幂次谓词。

Member Function Documentation

◆ operator()()

template<class Int>
bool console::ops::power_of_two_t::operator() ( Int n) const
inline

判断输入值是否为2的幂次。

Parameters
n输入值。
Returns
是否为2的幂次。

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