Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
auto square(const auto& x) { return x * x; } // An abbreviated function template
6
7
const double lambda{ 1.303577269034296391257 }; // Conway's constant
8
Callers
2
hypot
Method · 0.70
pow4
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected