File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 564564 return max - min;
565565 }
566566
567+
568+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
567569 interval expand(double delta) const {
568570 auto padding = delta/2;
569571 return interval(min - padding, max + padding);
570572 }
573+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
574+
571575 ...
572576 };
573577 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
574- [Listing [interval-contains ]: < kbd > interval.h</ kbd > interval::expand() method]
578+ [Listing [interval-expand ]: < kbd > [ interval.h] </ kbd > interval::expand() method]
575579
576580
577581 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
760764 public:
761765 ...
762766
767+
768+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
763769 interval(const interval& a, const interval& b)
764770 : min(fmin(a.min, b.min)), max(fmax(a.max, b.max)) {}
771+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
772+
773+ double size() const {
774+ ...
765775 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
766776 [Listing [interval-from-intervals]: < kbd > [interval.h]</ kbd >
767777 Interval constructor from two intervals
You can’t perform that action at this time.
0 commit comments