Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

函数 operator-= - Boost C++ 函数库
PrevUpHomeNext

函数 operator-=

boost::posix_time::operator-=

提要

// In header: <boost/date_time/posix_time/date_duration_operators.hpp>


BOOST_CXX14_CONSTEXPR ptime 
operator-=(ptime & t, const boost::gregorian::months & m);

描述

从 ptime 中减去一个 months 对象。结果将与 ptime 具有相同的月份中的某一天,除非原始日期是该月的最后一天。有关更多详细信息,请参阅 date_time::months_duration。


PrevUpHomeNext