summaryrefslogtreecommitdiff
path: root/zen/fixed_list.h
diff options
context:
space:
mode:
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