Drake
Drake C++ Documentation
NonSymbolicTraits Struct Reference

Detailed Description

A concrete traits class providing sugar to disable support for symbolic evaluation (i.e., the symbolic::Expression scalar type).

For example, if MySystem does not support the symbolic expression scalar type, it could specialize Traits as follows:

namespace drake {
namespace systems {
namespace scalar_conversion {
template <> struct Traits<MySystem> : public NonSymbolicTraits {};
} // namespace scalar_conversion
} // namespace systems
} // namespace drake

#include <drake/systems/framework/scalar_conversion_traits.h>

Public Types

template<typename T , typename U >
using supported = typename std::bool_constant< !std::is_same_v< T, symbolic::Expression > &&!std::is_same_v< U, symbolic::Expression > >
 

Member Typedef Documentation

◆ supported

using supported = typename std::bool_constant< !std::is_same_v<T, symbolic::Expression> && !std::is_same_v<U, symbolic::Expression> >

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