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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
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
Show 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:
...
@@ -33,27 +33,27 @@ cdef extern from "<map>" namespace "std" nogil:
bint
operator
>
(
map
&
,
map
&
)
bint
operator
>
(
map
&
,
map
&
)
bint
operator
<=
(
map
&
,
map
&
)
bint
operator
<=
(
map
&
,
map
&
)
bint
operator
>=
(
map
&
,
map
&
)
bint
operator
>=
(
map
&
,
map
&
)
U
&
at
(
T
&
)
U
&
at
(
const
T
&
)
except
+
iterator
begin
()
iterator
begin
()
const_iterator
const_begin
"begin"
()
const_iterator
const_begin
"begin"
()
void
clear
()
void
clear
()
size_t
count
(
T
&
)
size_t
count
(
const
T
&
)
bint
empty
()
bint
empty
()
iterator
end
()
iterator
end
()
const_iterator
const_end
"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&)
#pair[const_iterator, const_iterator] equal_range(key_type&)
void
erase
(
iterator
)
void
erase
(
iterator
)
void
erase
(
iterator
,
iterator
)
void
erase
(
iterator
,
iterator
)
size_t
erase
(
T
&
)
size_t
erase
(
const
T
&
)
iterator
find
(
T
&
)
iterator
find
(
const
T
&
)
const_iterator
const_find
"find"
(
T
&
)
const_iterator
const_find
"find"
(
const
T
&
)
pair
[
iterator
,
bint
]
insert
(
pair
[
T
,
U
])
# XXX pair[T,U]&
pair
[
iterator
,
bint
]
insert
(
pair
[
T
,
U
])
except
+
# XXX pair[T,U]&
iterator
insert
(
iterator
,
pair
[
T
,
U
])
# XXX pair[T,U]&
iterator
insert
(
iterator
,
pair
[
T
,
U
])
except
+
# XXX pair[T,U]&
#void insert(input_iterator, input_iterator)
#void insert(input_iterator, input_iterator)
#key_compare key_comp()
#key_compare key_comp()
iterator
lower_bound
(
T
&
)
iterator
lower_bound
(
const
T
&
)
#const_iterator lower_bound(key_type&)
#const_iterator lower_bound(
const
key_type&)
size_t
max_size
()
size_t
max_size
()
reverse_iterator
rbegin
()
reverse_iterator
rbegin
()
#const_reverse_iterator rbegin()
#const_reverse_iterator rbegin()
...
@@ -61,6 +61,6 @@ cdef extern from "<map>" namespace "std" nogil:
...
@@ -61,6 +61,6 @@ cdef extern from "<map>" namespace "std" nogil:
#const_reverse_iterator rend()
#const_reverse_iterator rend()
size_t
size
()
size_t
size
()
void
swap
(
map
&
)
void
swap
(
map
&
)
iterator
upper_bound
(
T
&
)
iterator
upper_bound
(
const
T
&
)
#const_iterator upper_bound(key_type&)
#const_iterator upper_bound(
const
key_type&)
#value_compare value_comp()
#value_compare value_comp()
Cython/Includes/libcpp/set.pxd
View file @
b44bdbb3
...
@@ -31,19 +31,19 @@ cdef extern from "<set>" namespace "std" nogil:
...
@@ -31,19 +31,19 @@ cdef extern from "<set>" namespace "std" nogil:
iterator
begin
()
iterator
begin
()
#const_iterator begin()
#const_iterator begin()
void
clear
()
void
clear
()
size_t
count
(
T
&
)
size_t
count
(
const
T
&
)
bint
empty
()
bint
empty
()
iterator
end
()
iterator
end
()
#const_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&)
#pair[const_iterator, const_iterator] equal_range(T&)
void
erase
(
iterator
)
void
erase
(
iterator
)
void
erase
(
iterator
,
iterator
)
void
erase
(
iterator
,
iterator
)
size_t
erase
(
T
&
)
size_t
erase
(
T
&
)
iterator
find
(
T
&
)
iterator
find
(
T
&
)
#const_iterator find(T&)
#const_iterator find(T&)
pair
[
iterator
,
bint
]
insert
(
T
&
)
pair
[
iterator
,
bint
]
insert
(
const
T
&
)
except
+
iterator
insert
(
iterator
,
T
&
)
iterator
insert
(
iterator
,
const
T
&
)
except
+
#void insert(input_iterator, input_iterator)
#void insert(input_iterator, input_iterator)
#key_compare key_comp()
#key_compare key_comp()
iterator
lower_bound
(
T
&
)
iterator
lower_bound
(
T
&
)
...
@@ -55,6 +55,6 @@ cdef extern from "<set>" namespace "std" nogil:
...
@@ -55,6 +55,6 @@ cdef extern from "<set>" namespace "std" nogil:
#const_reverse_iterator rend()
#const_reverse_iterator rend()
size_t
size
()
size_t
size
()
void
swap
(
set
&
)
void
swap
(
set
&
)
iterator
upper_bound
(
T
&
)
iterator
upper_bound
(
const
T
&
)
#const_iterator upper_bound(T&)
#const_iterator upper_bound(
const
T&)
#value_compare value_comp()
#value_compare value_comp()
Cython/Includes/libcpp/vector.pxd
View file @
b44bdbb3
...
@@ -41,9 +41,9 @@ cdef extern from "<vector>" namespace "std" nogil:
...
@@ -41,9 +41,9 @@ cdef extern from "<vector>" namespace "std" nogil:
bint
operator
>
(
vector
&
,
vector
&
)
bint
operator
>
(
vector
&
,
vector
&
)
bint
operator
<=
(
vector
&
,
vector
&
)
bint
operator
<=
(
vector
&
,
vector
&
)
bint
operator
>=
(
vector
&
,
vector
&
)
bint
operator
>=
(
vector
&
,
vector
&
)
void
assign
(
size_t
,
T
&
)
void
assign
(
size_t
,
const
T
&
)
void
assign
[
input_iterator
](
input_iterator
,
input_iterator
)
void
assign
[
input_iterator
](
input_iterator
,
input_iterator
)
except
+
T
&
at
(
size_t
)
T
&
at
(
size_t
)
except
+
T
&
back
()
T
&
back
()
iterator
begin
()
iterator
begin
()
#const_iterator begin()
#const_iterator begin()
...
@@ -55,22 +55,22 @@ cdef extern from "<vector>" namespace "std" nogil:
...
@@ -55,22 +55,22 @@ cdef extern from "<vector>" namespace "std" nogil:
iterator
erase
(
iterator
)
iterator
erase
(
iterator
)
iterator
erase
(
iterator
,
iterator
)
iterator
erase
(
iterator
,
iterator
)
T
&
front
()
T
&
front
()
iterator
insert
(
iterator
,
T
&
)
iterator
insert
(
iterator
,
const
T
&
)
except
+
void
insert
(
iterator
,
size_t
,
T
&
)
void
insert
(
iterator
,
size_t
,
const
T
&
)
except
+
void
insert
(
iterator
,
iterator
,
iterator
)
void
insert
[
Iter
](
iterator
,
Iter
,
Iter
)
except
+
size_t
max_size
()
size_t
max_size
()
void
pop_back
()
void
pop_back
()
void
push_back
(
T
&
)
void
push_back
(
T
&
)
except
+
reverse_iterator
rbegin
()
reverse_iterator
rbegin
()
#const_reverse_iterator rbegin()
#const_reverse_iterator rbegin()
reverse_iterator
rend
()
reverse_iterator
rend
()
#const_reverse_iterator rend()
#const_reverse_iterator rend()
void
reserve
(
size_t
)
void
reserve
(
size_t
)
void
resize
(
size_t
)
void
resize
(
size_t
)
except
+
void
resize
(
size_t
,
T
&
)
void
resize
(
size_t
,
T
&
)
except
+
size_t
size
()
size_t
size
()
void
swap
(
vector
&
)
void
swap
(
vector
&
)
#
C++0x
methods
#
C++11
methods
T
*
data
()
T
*
data
()
void
shrink_to_fit
()
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