Elements 6.3.1
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
Number.h
Go to the documentation of this file.
1
26#ifndef ELEMENTSKERNEL_ELEMENTSKERNEL_NUMBER_H_
27#define ELEMENTSKERNEL_ELEMENTSKERNEL_NUMBER_H_
28
29#include "ElementsKernel/Export.h" // ELEMENTS_API
30
31namespace Elements {
32
44template <typename TargetType, typename SourceType>
45ELEMENTS_API TargetType numberCast(const SourceType& s);
46
47} // namespace Elements
48
49#define ELEMENTSKERNEL_ELEMENTSKERNEL_NUMBER_IMPL_
50#include "ElementsKernel/_impl/Number.tpp" // IWYU pragma: export
51#undef ELEMENTSKERNEL_ELEMENTSKERNEL_NUMBER_IMPL_
52
53#endif // ELEMENTSKERNEL_ELEMENTSKERNEL_NUMBER_H_
54
defines the macros to be used for explicit export of the symbols
implementation of the templates declared in ElementsKernel/Auxiliary.h
ELEMENTS_API TargetType numberCast(const SourceType &s)
this function is a number cast. It behaves exactly as a static_cast except when casting from a floati...
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition Export.h:74