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
c56ff344
Commit
c56ff344
authored
Feb 15, 2020
by
Omer Ozarslan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add std::move wrapper to utility library
parent
531b9aa6
Changes
1
Show 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 @
c56ff344
...
...
@@ -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