Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::is_base_pointer_convertible< Base, Derived > Struct Template Reference

Detailed Description

template<template< typename > class Base, typename Derived>
struct stan::is_base_pointer_convertible< Base, Derived >

Checks if a type's pointer is convertible to a templated base type's pointer.

If the arbitrary function

std::true_type f(const Base<Derived>*)
static std::false_type f(const void *)

is well formed for input std::declval<Derived*>() this has a member value equal totrue`, otherwise the value is false.

Template Parameters
BaseThe templated base type for valid pointer conversion.
DerivedThe 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 > *)
 

The documentation for this struct was generated from the following file: