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
65b3aec3
Commit
65b3aec3
authored
Feb 22, 2016
by
Kevin R. Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add default templates to STL containers + rudimentary unit tests
parent
0fc1b3a2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
5 deletions
+14
-5
Cython/Includes/libcpp/deque.pxd
Cython/Includes/libcpp/deque.pxd
+1
-1
Cython/Includes/libcpp/list.pxd
Cython/Includes/libcpp/list.pxd
+1
-1
Cython/Includes/libcpp/map.pxd
Cython/Includes/libcpp/map.pxd
+1
-1
Cython/Includes/libcpp/unordered_set.pxd
Cython/Includes/libcpp/unordered_set.pxd
+1
-1
Cython/Includes/libcpp/vector.pxd
Cython/Includes/libcpp/vector.pxd
+1
-1
tests/run/libcpp_all.pyx
tests/run/libcpp_all.pyx
+9
-0
No files found.
Cython/Includes/libcpp/deque.pxd
View file @
65b3aec3
cdef
extern
from
"<deque>"
namespace
"std"
nogil
:
cdef
cppclass
deque
[
T
]:
cdef
cppclass
deque
[
T
,
ALLOCATOR
=*
]:
cppclass
iterator
:
T
&
operator
*
()
iterator
operator
++
()
...
...
Cython/Includes/libcpp/list.pxd
View file @
65b3aec3
cdef
extern
from
"<list>"
namespace
"std"
nogil
:
cdef
cppclass
list
[
T
]:
cdef
cppclass
list
[
T
,
ALLOCATOR
=*
]:
cppclass
iterator
:
iterator
()
iterator
(
iterator
&
)
...
...
Cython/Includes/libcpp/map.pxd
View file @
65b3aec3
from
.utility
cimport
pair
cdef
extern
from
"<map>"
namespace
"std"
nogil
:
cdef
cppclass
map
[
T
,
U
]:
cdef
cppclass
map
[
T
,
U
,
COMPARE
=*
,
ALLOCATOR
=*
]:
cppclass
iterator
:
pair
[
T
,
U
]
&
operator
*
()
iterator
operator
++
()
...
...
Cython/Includes/libcpp/unordered_set.pxd
View file @
65b3aec3
from
.utility
cimport
pair
cdef
extern
from
"<unordered_set>"
namespace
"std"
nogil
:
cdef
cppclass
unordered_set
[
T
]:
cdef
cppclass
unordered_set
[
T
,
HASH
=*
,
PRED
=*
,
ALLOCATOR
=*
]:
cppclass
iterator
:
T
&
operator
*
()
iterator
operator
++
()
...
...
Cython/Includes/libcpp/vector.pxd
View file @
65b3aec3
cdef
extern
from
"<vector>"
namespace
"std"
nogil
:
cdef
cppclass
vector
[
T
]:
cdef
cppclass
vector
[
T
,
ALLOCATOR
=*
]:
cppclass
iterator
:
T
&
operator
*
()
iterator
operator
++
()
...
...
tests/run/libcpp_all.pyx
View file @
65b3aec3
...
...
@@ -107,3 +107,12 @@ cdef int ieps = numeric_limits[int].epsilon()
cdef
int
iqnan
=
numeric_limits
[
int
].
quiet_NaN
()
cdef
int
isnan
=
numeric_limits
[
int
].
signaling_NaN
()
cdef
int
iinf
=
numeric_limits
[
int
].
infinity
()
#API checks for containers with std::allocator declared
from
libcpp.memory
cimport
allocator
cdef
libcpp
.
vector
.
vector
[
int
,
allocator
[
int
]]
vec_alloc_int
=
libcpp
.
vector
.
vector
[
int
,
allocator
[
int
]](
10
,
1
)
assert
vec_alloc_int
.
size
()
==
10
cdef
libcpp
.
list
.
list
[
int
,
allocator
[
int
]]
list_alloc_int
=
libcpp
.
list
.
list
[
int
,
allocator
[
int
]](
10
,
1
)
assert
list_alloc_int
.
size
()
==
10
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