Elements 6.3.1
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
FuncPtrCast.h File Reference

defines a Small helper function that allows the cast from void * to function pointer More...

#include <cstring>
#include <type_traits>
#include "ElementsKernel/_impl/FuncPtrCast.tpp"
Include dependency graph for FuncPtrCast.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Elements
 
namespace  Elements::System
 

Macros

#define ELEMENTSKERNEL_ELEMENTSKERNEL_FUNCPTRCAST_IMPL_
 

Functions

template<typename DESTPTR , typename SRC >
constexpr DESTPTR Elements::System::FuncPtrCast (SRC *const src_p) noexcept
 Cast from void * to function pointer.
 

Detailed Description

defines a Small helper function that allows the cast from void * to function pointer

Date
2014-12-01
Author
Hubert Degaudenzi

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file FuncPtrCast.h.