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
Xavier Thompson
cython
Commits
097e2be1
Commit
097e2be1
authored
Feb 15, 2020
by
Omer Ozarslan
Committed by
Stefan Behnel
Apr 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add std::move wrapper to utility library
parent
afb6256a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
Cython/Includes/libcpp/utility.pxd
Cython/Includes/libcpp/utility.pxd
+14
-0
No files found.
Cython/Includes/libcpp/utility.pxd
View file @
097e2be1
...
...
@@ -13,3 +13,17 @@ cdef extern from "<utility>" namespace "std" nogil:
bint
operator
>
(
pair
&
,
pair
&
)
bint
operator
<=
(
pair
&
,
pair
&
)
bint
operator
>=
(
pair
&
,
pair
&
)
cdef
extern
from
*
namespace
"cython_std"
nogil
:
"""
#if __cplusplus > 199711L
#include <type_traits>
namespace cython_std {
template <typename T> typename std::remove_reference<T>::type&& move(T& t) noexcept { return std::move(t); }
template <typename T> typename std::remove_reference<T>::type&& move(T&& t) noexcept { return std::move(t); }
}
#endif
"""
cdef
T
move
[
T
](
T
)
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