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

Class Example

11-Iterators/iterators.cpp:5–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <vector>
4
5class Example {
6public:
7 Example() {}
8 void add(const std::string& s)
9 {
10 mS.push_back(s);
11 }
12
13 std::vector<std::string>::iterator begin()
14 {
15 return mS.begin();
16 }
17 std::vector<std::string>::iterator end()
18 {
19 return mS.end();
20 }
21
22private:
23 std::vector<std::string> mS;
24};
25
26#include <boost/python.hpp>
27using namespace boost::python;

Callers 1

iterators.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected