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
Boxiang Sun
cython
Commits
48fec8d6
Commit
48fec8d6
authored
Dec 11, 2016
by
Mike Kolupaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few more wrappers in libcpp.algorithm and libcpp.vector
parent
c9bcf1be
Changes
2
Hide 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 @
48fec8d6
...
@@ -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 @
48fec8d6
...
@@ -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