Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-concurrency
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
typon-concurrency
Commits
ec916b36
Commit
ec916b36
authored
Aug 14, 2023
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert py_contains to dot structure
parent
7f08b35a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
rt/include/python/builtins/list.hpp
rt/include/python/builtins/list.hpp
+5
-3
No files found.
rt/include/python/builtins/list.hpp
View file @
ec916b36
...
...
@@ -28,9 +28,11 @@ public:
auto
append
(
const
T
&
x
)
{
_v
->
push_back
(
x
);
}
auto
py_contains
(
const
T
&
x
)
const
{
return
std
::
find
(
_v
->
begin
(),
_v
->
end
(),
x
)
!=
_v
->
end
();
}
struct
:
function
{
template
<
typename
Self
>
auto
operator
()(
Self
self
,
const
T
&
x
)
const
{
return
std
::
find
(
self
.
begin
(),
self
.
end
(),
x
)
!=
self
.
end
();
}
}
static
constexpr
py_contains
;
auto
size
()
const
{
return
_v
->
size
();
...
...
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