summaryrefslogtreecommitdiff
path: root/zen/fixed_list.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:53:55 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:53:55 +0200
commit9321c6bdfc559db6cf436d4ea88198983ce59846 (patch)
treee711c3373711b70b26de188aa4a893ffd30a1754 /zen/fixed_list.h
parent6.11 (diff)
downloadFreeFileSync-9321c6bdfc559db6cf436d4ea88198983ce59846.tar.gz
FreeFileSync-9321c6bdfc559db6cf436d4ea88198983ce59846.tar.bz2
FreeFileSync-9321c6bdfc559db6cf436d4ea88198983ce59846.zip
6.12
Diffstat (limited to 'zen/fixed_list.h')
-rw-r--r--zen/fixed_list.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/zen/fixed_list.h b/zen/fixed_list.h
index 627584df..2a577f13 100644
--- a/zen/fixed_list.h
+++ b/zen/fixed_list.h
@@ -1,12 +1,13 @@
// **************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under *
-// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
+// * GNU General Public License: http://www.gnu.org/licenses/gpl-3.0 *
// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved *
// **************************************************************************
#ifndef FIXED_LIST_01238467085684139453534
#define FIXED_LIST_01238467085684139453534
+#include <cassert>
#include <iterator>
namespace zen
@@ -116,6 +117,13 @@ public:
size_t size() const { return sz; }
+ void swap(FixedList& other)
+ {
+ std::swap(firstInsert, other.firstInsert);
+ std::swap(lastInsert , other.lastInsert);
+ std::swap(sz , other.sz);
+ }
+
private:
FixedList (const FixedList&) = delete;
FixedList& operator=(const FixedList&) = delete;
bgstack15