Lines Matching defs:ym
13 // constexpr year_month operator+(const year_month& ym, const years& dy) noexcept;
14 // Returns: (ym.year() + dy) / ym.month().
16 // constexpr year_month operator+(const years& dy, const year_month& ym) noexcept;
17 // Returns: ym + dy.
19 // constexpr year_month operator+(const year_month& ym, const months& dm) noexcept;
20 // Returns: A year_month value z such that z.ok() && z - ym == dm is true.
23 // constexpr year_month operator+(const months& dm, const year_month& ym) noexcept;
24 // Returns: ym + dm.
47 year_month ym{year{1234}, std::chrono::January};
49 year_month ym1 = ym + years{i};
50 year_month ym2 = years{i} + ym;
70 // [time.cal.ym.nonmembers]/4
71 // Returns: A year_month value z such that z.ok() && z - ym == dm is true.
72 year_month ym = {year{1234}, std::chrono::January};
74 year_month z = ym + dm;
75 assert(z.ok() && z - ym == dm);
78 year_month ym{year{1234}, std::chrono::January};
80 year_month ym1 = ym + months{i};
81 year_month ym2 = months{i} + ym;
90 year_month ym1 = ym + months{i};
91 year_month ym2 = months{i} + ym;