X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/d6848e7305f443c0d55fc83ad93beccdb8a572ea..20c32d79db6c7cb83737ef0142fd75d7ec35c81c:/Utility.hpp diff --git a/Utility.hpp b/Utility.hpp index c2aa4e3..5cfe6ab 100644 --- a/Utility.hpp +++ b/Utility.hpp @@ -1,5 +1,5 @@ -/* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2015 Jay Freeman (saurik) +/* Cycript - The Truly Universal Scripting Language + * Copyright (C) 2009-2016 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -44,6 +44,14 @@ inline T &&Forward(typename cy::remove_reference::type &&t) noexcept { return static_cast(t); } +template +inline typename cy::remove_reference::type &&Move(T &&t) { + return static_cast::type &&>(t); +} + +template struct EnableIf {}; +template struct EnableIf { typedef T type; }; + } #endif/*CYCRIPT_UTILITY_HPP*/