We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b47f471 commit 2be60e9Copy full SHA for 2be60e9
src/ystdlib/testlib/math.hpp
@@ -0,0 +1,14 @@
1
+#ifndef YSTDLIB_TESTLIB_MATH_HPP
2
+#define YSTDLIB_TESTLIB_MATH_HPP
3
+
4
+#include <concepts>
5
6
+namespace ystdlib::testlib {
7
+template <typename T>
8
+requires std::integral<T>
9
+[[nodiscard]] inline auto square(T x) -> T {
10
+ return x * x;
11
+}
12
+} // namespace ystdlib::testlib
13
14
+#endif // YSTDLIB_TESTLIB_MATH_HPP
taskfiles/deps.yaml
@@ -22,6 +22,5 @@ tasks:
22
internal: true
23
platforms:
24
- "darwin"
25
- dir: "{{.G_SCRIPT_DIR}}/lib_install/macos"
26
cmds:
27
- - "./install-all.sh"
+ - echo "Nothing to be installed for macOS."
tools/scripts/lib_install/macos/install-all.sh
0 commit comments