blob: 8c30457e856bf76ce356a8a7be52c0421dbd70c2 [file] [log] [blame]
Sergey Lyskoveae77442016-05-07 00:26:19 -04001/*
2 example/example17.cpp -- Usade of stl_binders functions
3
4 Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch>
5
6 All rights reserved. Use of this source code is governed by a
7 BSD-style license that can be found in the LICENSE file.
8*/
9
10#include "example.h"
11
12#include <pybind11/stl_binders.h>
13
14class A
15{
16public:
17 A() = delete;
18};
19
20void init_ex17(py::module &m)
21{
22 pybind11::class_<A>(m, "A");
23
24 py::vector_binder<int>(m, "VectorInt");
25
26 py::vector_binder<A>(m, "VectorA");
27}