Pybind11 Starter
# Pybind11 Starter
这是一篇笔记,保存 pybind11 项目的起始代码,便于下次使用 pybind11 的时候参考。
# 前言
Python 外部调用(以 c++ 为主)的几个方法:
功能
Boost.Python
pybind11
Cython
SWIG
核心思想
通过宏定义和元编程来简化 Python 的 API 调用
受 Boost.Python 启发的 Header-only 的易用 Python 接口
基于 Python 的 C/C++ 代码封装器,语法是 Python 的超集
将 C++ 代码封装成多种语言的框架
优点
1. 兼容旧特性的 C++ 和...
more...




