X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fspl.h;fp=src%2Flib%2Fspl.h;h=d7c746d1e39d1121bdbfdd3886682d4d05aa7d1e;hp=49eb93df236f7ab709080e41678e54b8a66db54a;hb=bf471e4e6d2502bb3b4e2eb4b1309d87e1003070;hpb=0c5f0e48080a28d3cfa9f8e2f4948bbc57bc0307 diff --git a/src/lib/spl.h b/src/lib/spl.h index 49eb93df2..d7c746d1e 100644 --- a/src/lib/spl.h +++ b/src/lib/spl.h @@ -26,6 +26,8 @@ #include "spl_entry.h" #include #include +#include + class ContentStore; @@ -63,6 +65,8 @@ public: SPLEntry const & operator[] (std::size_t index) const { return _spl[index]; + void swap(size_t a, size_t b) { + std::iter_swap(_spl.begin() + a, _spl.begin() + b); } void read (boost::filesystem::path path, ContentStore* store);