cplusplus
.com
教程
參考
文章
論壇
C++
教程
參考
文章
論壇
參考
C 庫
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
C++11
<cfenv> (fenv.h)
<cfloat> (float.h)
C++11
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
C++11
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
C++11
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
C++11
<ctgmath> (tgmath.h)
<ctime> (time.h)
C++11
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
容器
C++11
<array>
<deque>
C++11
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
C++11
<unordered_map>
C++11
<unordered_set>
<vector>
輸入/輸出
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
多執行緒
C++11
<atomic>
C++11
<condition_variable>
C++11
<future>
C++11
<mutex>
C++11
<thread>
其他
<algorithm>
<bitset>
C++11
<chrono>
C++11
<codecvt>
<complex>
<exception>
<functional>
C++11
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
C++11
<random>
C++11
<ratio>
C++11
<regex>
<stdexcept>
<string>
C++11
<system_error>
C++11
<tuple>
C++11
<type_traits>
C++11
<typeindex>
<typeinfo>
<utility>
<valarray>
<chrono>
類
C++11
common_type (duration)
C++11
common_type (time_point)
C++11
duration
C++11
duration_values
C++11
high_resolution_clock
C++11
steady_clock
C++11
system_clock
C++11
time_point
C++11
treat_as_floating_point
函式
C++11
duration_cast
C++11
time_point_cast
類 typedef
C++11
hours
C++11
microseconds
C++11
milliseconds
C++11
minutes
C++11
nanoseconds
C++11
seconds
參考
<chrono>
treat_as_floating_point
類模板
<chrono>
std::chrono::
treat_as_floating_point
template <class Rep> struct treat_as_floating_point : is_floating_point<Rep> {};
Treat as floating point
這是一個特徵類,用於識別內部用於
duration
的 *計數表示* 的哪些型別被視為浮點型別,從而允許使用分數 *計數*。
標準僅提供預設定義,它與型別的
is_floating_point
特徵相同,但 *計數表示* 的特定型別可以將此模板特化為
true_type
或
false_type
。
模板引數
Rep
計數表示型別。
這是一個算術型別,或一個模擬算術型別的類。
成員型別
繼承自
integral_constant
(透過
is_floating_point
)
成員型別
定義
value_type
bool
型別
true_type 或 false_type
成員常量
繼承自
integral_constant
(透過
is_floating_point
)
成員常量
定義
值
是
true
或
false
成員函式
繼承自
integral_constant
(透過
is_floating_point
)
operator bool
返回
值
(public member function)