assert_if_is_constraint< F > Struct Template Reference

Detailed Description

template<typename F>
struct drake::solvers::detail::assert_if_is_constraint< F >

Template condition to only catch when Constraints are inadvertently passed as an argument.

If the class is binding-compatible with a Constraint, then this will provide a static assertion to enable easier debugging of which type failed.

Template Parameters
FThe type to be tested.
See also

#include <drake/solvers/mathematical_program.h>

Static Public Attributes

static constexpr bool value = is_binding_compatible<F, Constraint>::value

Member Data Documentation

◆ value

constexpr bool value = is_binding_compatible<F, Constraint>::value

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