[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAllDifferentConstraint\u003c/code\u003e class in C++ enforces the constraint that all variables in a given set must have different values.\u003c/p\u003e\n"],["\u003cp\u003eThis constraint is implemented using the \u003ccode\u003eAllDifferentAC()\u003c/code\u003e algorithm and utilizes an IntegerEncoder, Trail, and IntegerTrail for internal operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods for propagation (\u003ccode\u003ePropagate\u003c/code\u003e) and registration with a watcher (\u003ccode\u003eRegisterWith\u003c/code\u003e) for efficient constraint enforcement within a solver.\u003c/p\u003e\n"]]],["The `AllDifferentConstraint` class in C++ implements the `AllDifferentAC()` algorithm. It takes a vector of `IntegerVariable` objects, an `IntegerEncoder`, a `Trail`, and an `IntegerTrail` during construction. The class offers two primary methods: `Propagate`, which returns a boolean, and `RegisterWith`, which is a void function that takes a `GenericLiteralWatcher`. The `Propagate` method is for constraint propagation. `RegisterWith` method registers the constraint with a watcher.\n"],null,["# AllDifferentConstraint\n\nC++ Reference: class AllDifferentConstraint\n===========================================\n\n\nNote: This documentation is automatically generated.\nImplementation of AllDifferentAC().\n\n| Method ||\n|----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| [`AllDifferentConstraint`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/all_different.h#L70) | \u003cbr /\u003e Arguments: `std::vector\u003cIntegerVariable\u003e variables, IntegerEncoder* encoder, Trail* trail, IntegerTrail* integer_trail` \u003cbr /\u003e |\n| [`Propagate`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/all_different.h#L74) | Return type: `bool ` \u003cbr /\u003e |\n| [`RegisterWith`](https://github.com/google/or-tools/blob/v9.4/ortools/sat/all_different.h#L75) | Return type: `void ` Arguments: `GenericLiteralWatcher* watcher` \u003cbr /\u003e |"]]