MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / CustomIterableSizeT

Class CustomIterableSizeT

test/embind/embind_test.cpp:1340–1354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1338};
1339
1340class CustomIterableSizeT {
1341 public:
1342 CustomIterableSizeT() : values_({10, 20, 30}) {}
1343
1344 size_t count() const {
1345 return values_.size();
1346 }
1347
1348 int at(size_t index) const {
1349 return values_[index];
1350 }
1351
1352 private:
1353 std::vector<int> values_;
1354};
1355
1356void test_string_with_vec(const std::string& p1, std::vector<std::string>& v1) {
1357 // THIS DOES NOT WORK -- need to get as val and then call vecFromJSArray

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected