This shows you the differences between two versions of the page.
|
gnucap:manual:tech:white_and_black_space [2026/02/06 11:43] felixs initial version |
gnucap:manual:tech:white_and_black_space [2026/03/17 05:41] (current) felixs illustrate more compact spacing |
||
|---|---|---|---|
| Line 17: | Line 17: | ||
| int get_a()const { return _a; } | int get_a()const { return _a; } | ||
| + | int get_a_square()const { untested(); | ||
| + | int s = a*a; | ||
| + | assert(s>=0); | ||
| + | return s; | ||
| + | } | ||
| + | int get_sqrt_a()const { assert(a>=0); return std::sqrt(a); } | ||
| int get_two_a()const; | int get_two_a()const; | ||
| }; | }; | ||
| - | + | ||
| * The header of a function that is not implemented inside a struct or class acts as a headline. This line ends after the argument list, i.e. the function block starts in the line below. | * The header of a function that is not implemented inside a struct or class acts as a headline. This line ends after the argument list, i.e. the function block starts in the line below. | ||