MCPcopy Create free account
hub / github.com/TNG/boost-python-examples / makeIt

Method makeIt

09-Overloading/overload.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 void doit(std::string s) { mS = s; }
18
19 int makeIt(std::string s, int n=1, std::string t="")
20 {
21 std::stringstream u;
22 for (unsigned int i=0; i<n; ++i)
23 u << s;
24 mS = u.str() + t;
25 return n + ( t.size() > 0 ? 1 : 0 );
26 }
27
28 std::string print() const { return mS; }
29private:

Callers 1

overload.pyFile · 0.80

Calls 1

strMethod · 0.80

Tested by

no test coverage detected