MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
字面量

用户定义字面量支持 更多...

函数

constexpr duration< decimal_t, ratio< 3600, 1 > > operator""_h (const decimal_t hours) noexcept
 小时字面量(浮点版本)
template<char... Digits>
constexpr hours operator""_h () noexcept
 小时字面量(整型版本)
constexpr duration< decimal_t, ratio< 60, 1 > > operator""_min (const decimal_t mins) noexcept
 分钟字面量(浮点版本)
template<char... Digits>
constexpr minutes operator""_min () noexcept
 分钟字面量(整型版本)
constexpr duration< decimal_toperator""_s (const decimal_t secs) noexcept
 秒字面量(浮点版本)
template<char... Digits>
constexpr seconds operator""_s () noexcept
 秒字面量(整型版本)
constexpr duration< decimal_t, millioperator""_ms (const decimal_t msecs) noexcept
 毫秒字面量(浮点版本)
template<char... Digits>
constexpr milliseconds operator""_ms () noexcept
 毫秒字面量(整型版本)
constexpr duration< decimal_t, microoperator""_us (const decimal_t usecs) noexcept
 微秒字面量(浮点版本)
template<char... Digits>
constexpr microseconds operator""_us () noexcept
 微秒字面量(整型版本)
constexpr duration< decimal_t, nanooperator""_ns (const decimal_t nsecs) noexcept
 纳秒字面量(浮点版本)
template<char... Digits>
constexpr nanoseconds operator""_ns () noexcept
 纳秒字面量(整型版本)

详细描述

用户定义字面量支持

函数说明

◆ operator""_h() [1/2]

template<char... Digits>
hours operator""_h ( )
constexprnoexcept

小时字面量(整型版本)

模板参数
Digits数字字符序列
返回
小时持续时间

在文件 duration.hpp782 行定义.

引用了 _INNER.

◆ operator""_h() [2/2]

duration< decimal_t, ratio< 3600, 1 > > operator""_h ( const decimal_t hours)
constexprnoexcept

小时字面量(浮点版本)

参数
hours小时数(浮点)
返回
小时持续时间

在文件 duration.hpp772 行定义.

◆ operator""_min() [1/2]

template<char... Digits>
minutes operator""_min ( )
constexprnoexcept

分钟字面量(整型版本)

模板参数
Digits数字字符序列
返回
分钟持续时间

在文件 duration.hpp801 行定义.

引用了 _INNER.

◆ operator""_min() [2/2]

duration< decimal_t, ratio< 60, 1 > > operator""_min ( const decimal_t mins)
constexprnoexcept

分钟字面量(浮点版本)

参数
mins分钟数(浮点)
返回
分钟持续时间

在文件 duration.hpp791 行定义.

◆ operator""_ms() [1/2]

template<char... Digits>
milliseconds operator""_ms ( )
constexprnoexcept

毫秒字面量(整型版本)

模板参数
Digits数字字符序列
返回
毫秒持续时间

在文件 duration.hpp839 行定义.

引用了 _INNER.

◆ operator""_ms() [2/2]

duration< decimal_t, milli > operator""_ms ( const decimal_t msecs)
constexprnoexcept

毫秒字面量(浮点版本)

参数
msecs毫秒数(浮点)
返回
毫秒持续时间

在文件 duration.hpp829 行定义.

◆ operator""_ns() [1/2]

template<char... Digits>
nanoseconds operator""_ns ( )
constexprnoexcept

纳秒字面量(整型版本)

模板参数
Digits数字字符序列
返回
纳秒持续时间

在文件 duration.hpp877 行定义.

引用了 _INNER.

◆ operator""_ns() [2/2]

duration< decimal_t, nano > operator""_ns ( const decimal_t nsecs)
constexprnoexcept

纳秒字面量(浮点版本)

参数
nsecs纳秒数(浮点)
返回
纳秒持续时间

在文件 duration.hpp867 行定义.

◆ operator""_s() [1/2]

template<char... Digits>
seconds operator""_s ( )
constexprnoexcept

秒字面量(整型版本)

模板参数
Digits数字字符序列
返回
秒持续时间

在文件 duration.hpp820 行定义.

引用了 _INNER.

◆ operator""_s() [2/2]

duration< decimal_t > operator""_s ( const decimal_t secs)
constexprnoexcept

秒字面量(浮点版本)

参数
secs秒数(浮点)
返回
秒持续时间

在文件 duration.hpp810 行定义.

◆ operator""_us() [1/2]

template<char... Digits>
microseconds operator""_us ( )
constexprnoexcept

微秒字面量(整型版本)

模板参数
Digits数字字符序列
返回
微秒持续时间

在文件 duration.hpp858 行定义.

引用了 _INNER.

◆ operator""_us() [2/2]

duration< decimal_t, micro > operator""_us ( const decimal_t usecs)
constexprnoexcept

微秒字面量(浮点版本)

参数
usecs微秒数(浮点)
返回
微秒持续时间

在文件 duration.hpp848 行定义.