1#ifndef STAN_MATH_PRIM_META_IS_BASE_POINTER_CONVERTIBLE_HPP
2#define STAN_MATH_PRIM_META_IS_BASE_POINTER_CONVERTIBLE_HPP
22template <
template <
typename>
class Base,
typename Derived>
24 static std::false_type
f(
const void *);
25 template <
typename OtherDerived>
26 static std::true_type
f(
const Base<OtherDerived> *);
29 =
decltype(
f(std::declval<std::remove_reference_t<Derived> *>()))
::value
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
static std::false_type f(const void *)
static std::true_type f(const Base< OtherDerived > *)
Checks if a type's pointer is convertible to a templated base type's pointer.