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 b27ef3b commit 3ef3574Copy full SHA for 3ef3574
weilycoder/ds/group.hpp
@@ -1,6 +1,10 @@
1
#ifndef WEILYCODER_GROUP_HPP
2
#define WEILYCODER_GROUP_HPP
3
4
+/**
5
+ * @brief Additive Group
6
+ * @tparam T Type of the elements
7
+ */
8
template <typename T> struct AddGroup {
9
using value_type = T;
10
static constexpr T operation(const T &a, const T &b) { return a + b; }
0 commit comments