Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
1d779be4
Commit
1d779be4
authored
Dec 15, 2016
by
Robert Bradshaw
Committed by
GitHub
Dec 15, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1550 from al13n321/master
A few more wrappers in libcpp.algorithm and libcpp.vector
parents
04cf0f8b
48fec8d6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
Cython/Includes/libcpp/algorithm.pxd
Cython/Includes/libcpp/algorithm.pxd
+12
-1
Cython/Includes/libcpp/vector.pxd
Cython/Includes/libcpp/vector.pxd
+1
-0
No files found.
Cython/Includes/libcpp/algorithm.pxd
View file @
1d779be4
...
@@ -7,6 +7,14 @@ cdef extern from "<algorithm>" namespace "std" nogil:
...
@@ -7,6 +7,14 @@ cdef extern from "<algorithm>" namespace "std" nogil:
bool
binary_search
[
Iter
,
T
,
Compare
](
Iter
first
,
Iter
last
,
const
T
&
value
,
bool
binary_search
[
Iter
,
T
,
Compare
](
Iter
first
,
Iter
last
,
const
T
&
value
,
Compare
comp
)
Compare
comp
)
Iter
lower_bound
[
Iter
,
T
](
Iter
first
,
Iter
last
,
const
T
&
value
)
Iter
lower_bound
[
Iter
,
T
,
Compare
](
Iter
first
,
Iter
last
,
const
T
&
value
,
Compare
comp
)
Iter
upper_bound
[
Iter
,
T
](
Iter
first
,
Iter
last
,
const
T
&
value
)
Iter
upper_bound
[
Iter
,
T
,
Compare
](
Iter
first
,
Iter
last
,
const
T
&
value
,
Compare
comp
)
void
partial_sort
[
Iter
](
Iter
first
,
Iter
middle
,
Iter
last
)
void
partial_sort
[
Iter
](
Iter
first
,
Iter
middle
,
Iter
last
)
void
partial_sort
[
Iter
,
Compare
](
Iter
first
,
Iter
middle
,
Iter
last
,
void
partial_sort
[
Iter
,
Compare
](
Iter
first
,
Iter
middle
,
Iter
last
,
Compare
comp
)
Compare
comp
)
...
@@ -14,6 +22,10 @@ cdef extern from "<algorithm>" namespace "std" nogil:
...
@@ -14,6 +22,10 @@ cdef extern from "<algorithm>" namespace "std" nogil:
void
sort
[
Iter
](
Iter
first
,
Iter
last
)
void
sort
[
Iter
](
Iter
first
,
Iter
last
)
void
sort
[
Iter
,
Compare
](
Iter
first
,
Iter
last
,
Compare
comp
)
void
sort
[
Iter
,
Compare
](
Iter
first
,
Iter
last
,
Compare
comp
)
# Removing duplicates
Iter
unique
[
Iter
](
Iter
first
,
Iter
last
)
Iter
unique
[
Iter
,
BinaryPredicate
](
Iter
first
,
Iter
last
,
BinaryPredicate
p
)
# Binary heaps (priority queues)
# Binary heaps (priority queues)
void
make_heap
[
Iter
](
Iter
first
,
Iter
last
)
void
make_heap
[
Iter
](
Iter
first
,
Iter
last
)
void
make_heap
[
Iter
,
Compare
](
Iter
first
,
Iter
last
,
Compare
comp
)
void
make_heap
[
Iter
,
Compare
](
Iter
first
,
Iter
last
,
Compare
comp
)
...
@@ -29,4 +41,3 @@ cdef extern from "<algorithm>" namespace "std" nogil:
...
@@ -29,4 +41,3 @@ cdef extern from "<algorithm>" namespace "std" nogil:
# Copy
# Copy
OutputIter
copy
[
InputIter
,
OutputIter
](
InputIter
,
InputIter
,
OutputIter
)
OutputIter
copy
[
InputIter
,
OutputIter
](
InputIter
,
InputIter
,
OutputIter
)
Cython/Includes/libcpp/vector.pxd
View file @
1d779be4
...
@@ -8,6 +8,7 @@ cdef extern from "<vector>" namespace "std" nogil:
...
@@ -8,6 +8,7 @@ cdef extern from "<vector>" namespace "std" nogil:
iterator
operator
--
()
iterator
operator
--
()
iterator
operator
+
(
size_t
)
iterator
operator
+
(
size_t
)
iterator
operator
-
(
size_t
)
iterator
operator
-
(
size_t
)
size_t
operator
-
(
iterator
)
bint
operator
==
(
iterator
)
bint
operator
==
(
iterator
)
bint
operator
!=
(
iterator
)
bint
operator
!=
(
iterator
)
bint
operator
<
(
iterator
)
bint
operator
<
(
iterator
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment