Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class SavedVariable
Note: This documentation is automatically generated.
Same as SavedLiteral for variable.
TODO(user): get rid of this, we don't have the notion of equivalent variable
anymore, but the more general affine relation one. We just need to support
general affine for the linear1 involving an absolute value.
[[["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."],[[["This C++ documentation is for the `SavedVariable` class, which is automatically generated."],["`SavedVariable` is similar to `SavedLiteral`, but the concept of equivalent variables is being replaced by a more general affine relation."],["The `SavedVariable` class includes a constructor that takes an integer `ref` argument, and a `Get` method that returns an integer."],["Future plans for this class involve supporting general affine relations for linear expressions that include absolute values."]]],["The `SavedVariable` class in C++ is documented as being similar to `SavedLiteral` for variables, with an upcoming change to support general affine relations instead of just equivalent variables. The documentation outlines two methods: `Get`, which returns an integer, and `SavedVariable`, which takes an integer `ref` as an argument and is declared `explicit`. There is a pending task to replace the notion of \"equivalent variable\" with a more general affine relation approach.\n"]]