std::chrono...,operator-=(3)
πΈ NAME πΈ
okay bestie, this page is called std::chrono...,operator-=(3) and it comes straight from the C++ Standard Libary manual π. It's all about std::chrono::time_point::operator+= and std::chrono::time_point::operator-= β the little shortcuts that nudge a time point by a duration. no cap.
β¨ Synopsis β¨
time_point& operator+=( const duration& d ); (1) (since C++11)
(constexpr since C++17)
time_point& operator-=( const duration& d ); (2) (since C++11)
(constexpr since C++17)
Modifies the time point by the given duration. obsessed.
- Applies the offset
dtopt. Effectively,dis added to the internally stored durationd_asd_ += d. - Applies the offset
dtoptin negative direction. Effectively,dis subtracted from the internally stored durationd_asd_ -= d.
π Parameters π
dβ a time offset to apply
π«Ά Return value π«Ά
*thisβ periodt, that's what comes back.
π Exceptions π
- May throw implementation-defined exceptions. yes, dramatic but true.
π Example π
This section is incomplete Reason: no example
π¦ See also π¦
operator+performs add and subtract operations involving a time pointoperator-(function template) (C++11)
π Category π
- Category: Todo no example
mwah π β this iconic little page came from cppreference.com, dated 2024.06.10, and its page name is std::chrono...,operator-=(3). π
β¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms