aligator  0.15.0
A versatile and efficient C++ library for real-time constrained trajectory optimization.
Loading...
Searching...
No Matches
aligator::is_tpl_base_of< Base, Derived > Struct Template Reference

#include <aligator/math.hpp>

Static Public Member Functions

static constexpr std::false_type f (const void *)
 
template<typename OtherDerived>
static constexpr std::true_type f (const Base< OtherDerived > *)
 

Static Public Attributes

static constexpr bool value
 

Detailed Description

template<template< class > class Base, typename Derived>
struct aligator::is_tpl_base_of< Base, Derived >

This type class recognises whether

Template Parameters
BaseBase template (CRTP) class
DerivedDerived class, does not need to derive from Base<Derived> for this type trait to evaluate to true.

Definition at line 59 of file math.hpp.

Member Function Documentation

◆ f() [1/2]

template<template< class > class Base, typename Derived>
static constexpr std::false_type aligator::is_tpl_base_of< Base, Derived >::f ( const void * )
staticconstexpr

◆ f() [2/2]

template<template< class > class Base, typename Derived>
template<typename OtherDerived>
static constexpr std::true_type aligator::is_tpl_base_of< Base, Derived >::f ( const Base< OtherDerived > * )
staticconstexpr

Member Data Documentation

◆ value

template<template< class > class Base, typename Derived>
bool aligator::is_tpl_base_of< Base, Derived >::value
staticconstexpr
Initial value:
=
decltype(f(std::declval<std::remove_reference_t<Derived> *>()))::value
static constexpr std::false_type f(const void *)
static constexpr bool value
Definition math.hpp:63

Definition at line 63 of file math.hpp.


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