This is a small Array library.
Here we have a c++ source code(under cxx directory) and generated bindings for swift, kotlin and python.
You can find generated bindings under kotlin, swift and python directories. This is configured in cppbind.yaml file.
In this example we use bazel for build.
To generate the wrappers yourself use the following command:
cppbind run kotlin swift pythonFor CppBind installation and configuration check the documentation CppBind docs.
In this example we have a small usage program for each language which creates an array and uses it.
To run the program for three languages run the following command:
bazel run array_swift
bazel run array_python
bazel run array_kotlinCppBind-generated Python bindings are being binded to Python application with help of pybind. Please note that the use of PyBind is governed by the corresponding license.