C++ Reference: all_different
Note: This documentation is automatically generated.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["The `all_different` constraint in C++ enforces that all variables in a given set have unique values."],["This constraint is supported by classes like `AllDifferentBoundsPropagator` and `AllDifferentConstraint`, providing different propagation and implementation strategies for ensuring distinctness."]]],["The C++ reference documentation defines two classes related to the \"all_different\" constraint in the context of optimization, likely within a Satisfiability Modulo Theories (SMT) solver. These classes are `AllDifferentBoundsPropagator`, which handles the propagation of bounds related to the constraint, and `AllDifferentConstraint`, which represents the core \"all_different\" constraint itself. This implies functionality for enforcing uniqueness among a set of variables.\n"]]