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
fd1adbdf
Commit
fd1adbdf
authored
Aug 07, 2015
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #406 from kloffy/master
Add <memory> header to libcpp
parents
8794483d
117b7b45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
0 deletions
+86
-0
Cython/Includes/libcpp/memory.pxd
Cython/Includes/libcpp/memory.pxd
+86
-0
No files found.
Cython/Includes/libcpp/memory.pxd
0 → 100644
View file @
fd1adbdf
from
libcpp
cimport
bool
cdef
extern
from
"<memory>"
namespace
"std"
nogil
:
ctypedef
void
*
nullptr_t
;
# Should be decltype(nullptr)
cdef
cppclass
unique_ptr
[
T
]:
unique_ptr
()
unique_ptr
(
nullptr_t
)
unique_ptr
(
T
*
)
unique_ptr
(
unique_ptr
[
T
]
&
)
# Modifiers
T
*
release
()
void
reset
()
void
reset
(
nullptr_t
)
void
reset
(
T
*
)
void
swap
(
unique_ptr
&
)
# Observers
T
*
get
()
T
&
operator
*
()
#T* operator->() # Not Supported
#bool operator bool() # Not Supported
bool
operator
==
(
const
unique_ptr
&
)
bool
operator
!=
(
const
unique_ptr
&
)
bool
operator
<
(
const
unique_ptr
&
)
bool
operator
>
(
const
unique_ptr
&
)
bool
operator
<=
(
const
unique_ptr
&
)
bool
operator
>=
(
const
unique_ptr
&
)
bool
operator
==
(
nullptr_t
)
bool
operator
!=
(
nullptr_t
)
# Forward Declaration not working ("Compiler crash in AnalyseDeclarationsTransform")
#cdef cppclass weak_ptr[T]
cdef
cppclass
shared_ptr
[
T
]:
shared_ptr
()
shared_ptr
(
nullptr_t
)
shared_ptr
(
T
*
)
shared_ptr
(
shared_ptr
[
T
]
&
)
shared_ptr
(
shared_ptr
[
T
]
&
,
T
*
)
shared_ptr
(
unique_ptr
[
T
]
&
)
#shared_ptr(weak_ptr[T]&) # Not Supported
# Modifiers
void
reset
()
void
reset
(
T
*
)
void
swap
(
shared_ptr
&
)
# Observers
T
*
get
()
T
&
operator
*
()
#T* operator->() # Not Supported
long
use_count
()
bool
unique
()
#bool operator bool() # Not Supported
#bool owner_before[Y](const weak_ptr[Y]&) # Not Supported
bool
owner_before
[
Y
](
const
shared_ptr
[
Y
]
&
)
bool
operator
==
(
const
shared_ptr
&
)
bool
operator
!=
(
const
shared_ptr
&
)
bool
operator
<
(
const
shared_ptr
&
)
bool
operator
>
(
const
shared_ptr
&
)
bool
operator
<=
(
const
shared_ptr
&
)
bool
operator
>=
(
const
shared_ptr
&
)
bool
operator
==
(
nullptr_t
)
bool
operator
!=
(
nullptr_t
)
cdef
cppclass
weak_ptr
[
T
]:
weak_ptr
()
weak_ptr
(
weak_ptr
[
T
]
&
)
weak_ptr
(
shared_ptr
[
T
]
&
)
# Modifiers
void
reset
()
void
swap
(
weak_ptr
&
)
# Observers
long
use_count
()
bool
expired
()
shared_ptr
[
T
]
lock
()
bool
owner_before
[
Y
](
const
weak_ptr
[
Y
]
&
)
bool
owner_before
[
Y
](
const
shared_ptr
[
Y
]
&
)
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