diff options
Diffstat (limited to 'include/EASTL/internal/memory_base.h')
-rw-r--r-- | include/EASTL/internal/memory_base.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/include/EASTL/internal/memory_base.h b/include/EASTL/internal/memory_base.h deleted file mode 100644 index b1c3490..0000000 --- a/include/EASTL/internal/memory_base.h +++ /dev/null @@ -1,37 +0,0 @@ -///////////////////////////////////////////////////////////////////////////// -// Copyright (c) Electronic Arts Inc. All rights reserved. -///////////////////////////////////////////////////////////////////////////// - -#ifndef EASTL_INTERNAL_MEMORY_BASE_H -#define EASTL_INTERNAL_MEMORY_BASE_H - -#include <EASTL/internal/config.h> - -#if defined(EA_PRAGMA_ONCE_SUPPORTED) - #pragma once // Some compilers (e.g. VC++) benefit significantly from using this. We've measured 3-4% build speed improvements in apps as a result. -#endif - - -//////////////////////////////////////////////////////////////////////////////////////////// -// This file contains basic functionality found in the standard library 'memory' header that -// have limited or no dependencies. This allows us to utilize these utilize these functions -// in other EASTL code while avoid circular dependencies. -//////////////////////////////////////////////////////////////////////////////////////////// - -namespace eastl -{ - /// addressof - /// - /// From the C++11 Standard, section 20.6.12.1 - /// Returns the actual address of the object or function referenced by r, even in the presence of an overloaded operator&. - /// - template<typename T> - T* addressof(T& value) EA_NOEXCEPT - { - return reinterpret_cast<T*>(&const_cast<char&>(reinterpret_cast<const volatile char&>(value))); - } - -} // namespace eastl - -#endif // EASTL_INTERNAL_MEMORY_BASE_H - |