summaryrefslogtreecommitdiff
path: root/Cython/Includes/libcpp/any.pxd
diff options
context:
space:
mode:
Diffstat (limited to 'Cython/Includes/libcpp/any.pxd')
-rw-r--r--Cython/Includes/libcpp/any.pxd16
1 files changed, 16 insertions, 0 deletions
diff --git a/Cython/Includes/libcpp/any.pxd b/Cython/Includes/libcpp/any.pxd
new file mode 100644
index 000000000..7c0d000cd
--- /dev/null
+++ b/Cython/Includes/libcpp/any.pxd
@@ -0,0 +1,16 @@
+from libcpp cimport bool
+from libcpp.typeinfo cimport type_info
+
+cdef extern from "<any>" namespace "std" nogil:
+ cdef cppclass any:
+ any()
+ any(any&) except +
+ void reset()
+ bool has_value()
+ type_info& type()
+ T& emplace[T](...) except +
+ void swap(any&)
+ any& operator=(any&) except +
+ any& operator=[U](U&) except +
+
+ cdef T any_cast[T](any&) except +