Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 977 vs 978 for /trunk/Source Code/Platform/Headers/PlatformDefines.h

Diff revisions: vs.
  @@ -278,6 +278,18 @@
278 278 }; //namespace std
279 279 #endif
280 280
281 + template <typename T>
282 + struct reversion_wrapper { T& iterable; };
283 +
284 + template <typename T>
285 + auto begin(reversion_wrapper<T> w) { return std::rbegin(w.iterable); }
286 +
287 + template <typename T>
288 + auto end(reversion_wrapper<T> w) { return std::rend(w.iterable); }
289 +
290 + template <typename T>
291 + reversion_wrapper<T> reverse(T&& iterable) { return { iterable }; }
292 +
281 293 template<typename T >
282 294 std::unique_ptr<T> copy_unique(const std::unique_ptr<T>& source)
283 295 {