MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / square

Function square

Examples/NoModules/Appendix A/ExA_11/BetterMath.h:5–5  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#define BETTER_MATH_H
4
5auto square(const auto& x) { return x * x; } // An abbreviated function template
6
7const double lambda{ 1.303577269034296391257 }; // Conway's constant
8

Callers 2

hypotMethod · 0.70
pow4Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected