tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
is_base_of< Base, Derived > Struct Template Reference

Compile-time inheritance check (replacement for std::is_base_of). More...

#include <simple_type_traits.h>

Static Public Attributes

static constexpr bool value = detail::is_base_of_impl<Base, Derived>::value
 

Detailed Description

template<typename Base, typename Derived>
struct is_base_of< Base, Derived >

Compile-time inheritance check (replacement for std::is_base_of).

Template Parameters
BaseCandidate base class.
DerivedCandidate derived class.

Uses the compiler intrinsic __is_base_of when available, otherwise falls back to a pointer-conversion SFINAE check.

Note
The fallback does not detect private/ambiguous inheritance (the intrinsic does). This is acceptable for the library's use cases where inheritance is always public.

Member Data Documentation

◆ value

template<typename Base , typename Derived >
constexpr bool is_base_of< Base, Derived >::value = detail::is_base_of_impl<Base, Derived>::value
staticconstexpr

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