std::chrono::year::
operator+,
std::chrono::year::
operator-
<
cpp
|
chrono
|
year
constexpr
std
::
chrono
::
year
operator
+
(
)
noexcept
;
(1)
(C++20 起)
constexpr
std
::
chrono
::
year
operator
-
(
)
noexcept
;
(2)
(C++20 起)
应用一元运算符到年份值。
1)
返回
*
this
的副本。
2)
返回年份值为
*
this
的年份值相反数的
year
。
返回值
1)
*
this
2)
std
::
chrono
::
year
(
-
int
(
*
this
)
)
示例
本节未完成
原因:暂无示例