Template Function SymEngine::is_a_sub

Function Documentation

template<class T>
bool SymEngine::is_a_sub(const Basic &b)

Returns true if b is of type T or any of its subclasses. Example:

 is_a_sub<Symbol>(b)  // true if `b` is of type `Symbol` or any Symbol's
subclass