MCPcopy Create free account
hub / github.com/boost-ext/te / Addable

Class Addable

example/overload.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace te = boost::te;
13
14struct Addable {
15 constexpr auto add(int i) { return te::call<int>(add_impl, *this, i); }
16 constexpr auto add(int a, int b) {
17 return te::call<int>(add_impl, *this, a, b);
18 }
19
20 private:
21 static constexpr auto add_impl = [](auto &self, auto... args) {
22 return self.add(args...);
23 };
24};
25
26class Calc {
27 public:

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected