Stan Math Library
4.9.0
Automatic Differentiation
|
Checks if a type's pointer is convertible to a templated base type's pointer.
If the arbitrary function
is well formed for input std::declval<Derived*>() this has a member value equal to
true`, otherwise the value is false.
Base | The templated base type for valid pointer conversion. |
Derived | The type to check |
Definition at line 23 of file is_base_pointer_convertible.hpp.
#include <is_base_pointer_convertible.hpp>
Public Types | |
enum | { value = decltype(f(std::declval<std::remove_reference_t<Derived> *>()))::value } |
Static Public Member Functions | |
static std::false_type | f (const void *) |
template<typename OtherDerived > | |
static std::true_type | f (const Base< OtherDerived > *) |