Commit 8600bc1c authored by Max Bachmann's avatar Max Bachmann Committed by GitHub

Add emplace_back to C++ vector declarations (GH-4527)

This definition could be improved when variadic templates are supported at some point, but since the types are not really relevant for Cython it should be fine to use C variadics here (especially since I do not expect that variadic templates will be supported anytime soon).

Closes https://github.com/cython/cython/issues/2171
parent c36aa2f8
......@@ -86,3 +86,5 @@ cdef extern from "<vector>" namespace "std" nogil:
T* data()
const T* const_data "data"()
void shrink_to_fit() except +
iterator emplace(const_iterator, ...) except +
T& emplace_back(...) except +
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment