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
b44bdbb3
Commit
b44bdbb3
authored
Jan 26, 2015
by
Lars Buitinck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some "except +" and const-correctness in libcpp (containers)
parent
cf0b3f2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
28 deletions
+28
-28
Cython/Includes/libcpp/map.pxd
Cython/Includes/libcpp/map.pxd
+12
-12
Cython/Includes/libcpp/set.pxd
Cython/Includes/libcpp/set.pxd
+6
-6
Cython/Includes/libcpp/vector.pxd
Cython/Includes/libcpp/vector.pxd
+10
-10
No files found.
Cython/Includes/libcpp/map.pxd
View file @
b44bdbb3
...
...
@@ -33,27 +33,27 @@ cdef extern from "<map>" namespace "std" nogil:
bint
operator
>
(
map
&
,
map
&
)
bint
operator
<=
(
map
&
,
map
&
)
bint
operator
>=
(
map
&
,
map
&
)
U
&
at
(
T
&
)
U
&
at
(
const
T
&
)
except
+
iterator
begin
()
const_iterator
const_begin
"begin"
()
void
clear
()
size_t
count
(
T
&
)
size_t
count
(
const
T
&
)
bint
empty
()
iterator
end
()
const_iterator
const_end
"end"
()
pair
[
iterator
,
iterator
]
equal_range
(
T
&
)
pair
[
iterator
,
iterator
]
equal_range
(
const
T
&
)
#pair[const_iterator, const_iterator] equal_range(key_type&)
void
erase
(
iterator
)
void
erase
(
iterator
,
iterator
)
size_t
erase
(
T
&
)
iterator
find
(
T
&
)
const_iterator
const_find
"find"
(
T
&
)
pair
[
iterator
,
bint
]
insert
(
pair
[
T
,
U
])
# XXX pair[T,U]&
iterator
insert
(
iterator
,
pair
[
T
,
U
])
# XXX pair[T,U]&
size_t
erase
(
const
T
&
)
iterator
find
(
const
T
&
)
const_iterator
const_find
"find"
(
const
T
&
)
pair
[
iterator
,
bint
]
insert
(
pair
[
T
,
U
])
except
+
# XXX pair[T,U]&
iterator
insert
(
iterator
,
pair
[
T
,
U
])
except
+
# XXX pair[T,U]&
#void insert(input_iterator, input_iterator)
#key_compare key_comp()
iterator
lower_bound
(
T
&
)
#const_iterator lower_bound(key_type&)
iterator
lower_bound
(
const
T
&
)
#const_iterator lower_bound(
const
key_type&)
size_t
max_size
()
reverse_iterator
rbegin
()
#const_reverse_iterator rbegin()
...
...
@@ -61,6 +61,6 @@ cdef extern from "<map>" namespace "std" nogil:
#const_reverse_iterator rend()
size_t
size
()
void
swap
(
map
&
)
iterator
upper_bound
(
T
&
)
#const_iterator upper_bound(key_type&)
iterator
upper_bound
(
const
T
&
)
#const_iterator upper_bound(
const
key_type&)
#value_compare value_comp()
Cython/Includes/libcpp/set.pxd
View file @
b44bdbb3
...
...
@@ -31,19 +31,19 @@ cdef extern from "<set>" namespace "std" nogil:
iterator
begin
()
#const_iterator begin()
void
clear
()
size_t
count
(
T
&
)
size_t
count
(
const
T
&
)
bint
empty
()
iterator
end
()
#const_iterator end()
pair
[
iterator
,
iterator
]
equal_range
(
T
&
)
pair
[
iterator
,
iterator
]
equal_range
(
const
T
&
)
#pair[const_iterator, const_iterator] equal_range(T&)
void
erase
(
iterator
)
void
erase
(
iterator
,
iterator
)
size_t
erase
(
T
&
)
iterator
find
(
T
&
)
#const_iterator find(T&)
pair
[
iterator
,
bint
]
insert
(
T
&
)
iterator
insert
(
iterator
,
T
&
)
pair
[
iterator
,
bint
]
insert
(
const
T
&
)
except
+
iterator
insert
(
iterator
,
const
T
&
)
except
+
#void insert(input_iterator, input_iterator)
#key_compare key_comp()
iterator
lower_bound
(
T
&
)
...
...
@@ -55,6 +55,6 @@ cdef extern from "<set>" namespace "std" nogil:
#const_reverse_iterator rend()
size_t
size
()
void
swap
(
set
&
)
iterator
upper_bound
(
T
&
)
#const_iterator upper_bound(T&)
iterator
upper_bound
(
const
T
&
)
#const_iterator upper_bound(
const
T&)
#value_compare value_comp()
Cython/Includes/libcpp/vector.pxd
View file @
b44bdbb3
...
...
@@ -41,9 +41,9 @@ cdef extern from "<vector>" namespace "std" nogil:
bint
operator
>
(
vector
&
,
vector
&
)
bint
operator
<=
(
vector
&
,
vector
&
)
bint
operator
>=
(
vector
&
,
vector
&
)
void
assign
(
size_t
,
T
&
)
void
assign
[
input_iterator
](
input_iterator
,
input_iterator
)
T
&
at
(
size_t
)
void
assign
(
size_t
,
const
T
&
)
void
assign
[
input_iterator
](
input_iterator
,
input_iterator
)
except
+
T
&
at
(
size_t
)
except
+
T
&
back
()
iterator
begin
()
#const_iterator begin()
...
...
@@ -55,22 +55,22 @@ cdef extern from "<vector>" namespace "std" nogil:
iterator
erase
(
iterator
)
iterator
erase
(
iterator
,
iterator
)
T
&
front
()
iterator
insert
(
iterator
,
T
&
)
void
insert
(
iterator
,
size_t
,
T
&
)
void
insert
(
iterator
,
iterator
,
iterator
)
iterator
insert
(
iterator
,
const
T
&
)
except
+
void
insert
(
iterator
,
size_t
,
const
T
&
)
except
+
void
insert
[
Iter
](
iterator
,
Iter
,
Iter
)
except
+
size_t
max_size
()
void
pop_back
()
void
push_back
(
T
&
)
void
push_back
(
T
&
)
except
+
reverse_iterator
rbegin
()
#const_reverse_iterator rbegin()
reverse_iterator
rend
()
#const_reverse_iterator rend()
void
reserve
(
size_t
)
void
resize
(
size_t
)
void
resize
(
size_t
,
T
&
)
void
resize
(
size_t
)
except
+
void
resize
(
size_t
,
T
&
)
except
+
size_t
size
()
void
swap
(
vector
&
)
#
C++0x
methods
#
C++11
methods
T
*
data
()
void
shrink_to_fit
()
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