MCPcopy Create free account
hub / github.com/0voice/cpp_new_features / Tax

Method Tax

cpp_11/003_class_functor.cpp:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5 int base;
6public:
7 Tax(float r, int b)
8 :rate(r),
9 base(b)
10 {}
11 float operator()(float money){ return (money - base)*rate; }
12};
13

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected