diff options
Diffstat (limited to 'include/EASTL/internal/function_help.h')
-rw-r--r-- | include/EASTL/internal/function_help.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/include/EASTL/internal/function_help.h b/include/EASTL/internal/function_help.h deleted file mode 100644 index 04481d3..0000000 --- a/include/EASTL/internal/function_help.h +++ /dev/null @@ -1,51 +0,0 @@ -///////////////////////////////////////////////////////////////////////////// -// Copyright (c) Electronic Arts Inc. All rights reserved. -///////////////////////////////////////////////////////////////////////////// - -#ifndef EASTL_INTERNAL_FUNCTION_HELP_H -#define EASTL_INTERNAL_FUNCTION_HELP_H - -#if defined(EA_PRAGMA_ONCE_SUPPORTED) - #pragma once -#endif - -#include <EASTL/internal/config.h> -#include <EASTL/type_traits.h> - -namespace eastl -{ - namespace internal - { - - ////////////////////////////////////////////////////////////////////// - // is_null - // - template <typename T> - bool is_null(const T&) - { - return false; - } - - template <typename Result, typename... Arguments> - bool is_null(Result (*const& function_pointer)(Arguments...)) - { - return function_pointer == nullptr; - } - - template <typename Result, typename Class, typename... Arguments> - bool is_null(Result (Class::*const& function_pointer)(Arguments...)) - { - return function_pointer == nullptr; - } - - template <typename Result, typename Class, typename... Arguments> - bool is_null(Result (Class::*const& function_pointer)(Arguments...) const) - { - return function_pointer == nullptr; - } - - } // namespace internal -} // namespace eastl - -#endif // Header include guard - |