Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
98e6a861
Commit
98e6a861
authored
May 08, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/HugeAllocator: import std::swap()
parent
2c6dd04d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
HugeAllocator.cxx
src/util/HugeAllocator.cxx
+1
-1
HugeAllocator.hxx
src/util/HugeAllocator.hxx
+3
-2
No files found.
src/util/HugeAllocator.cxx
View file @
98e6a861
/*
* Copyright
(C) 2013-2017
Max Kellermann <max.kellermann@gmail.com>
* Copyright
2013-2019
Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
src/util/HugeAllocator.hxx
View file @
98e6a861
/*
* Copyright
(C) 2013-2017
Max Kellermann <max.kellermann@gmail.com>
* Copyright
2013-2019
Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -164,7 +164,8 @@ public:
}
HugeArray
&
operator
=
(
HugeArray
&&
other
)
noexcept
{
std
::
swap
(
buffer
,
other
.
buffer
);
using
std
::
swap
;
swap
(
buffer
,
other
.
buffer
);
return
*
this
;
}
...
...
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