40 #ifndef OR_TOOLS_MATH_OPT_CPP_KEY_TYPES_H_
41 #define OR_TOOLS_MATH_OPT_CPP_KEY_TYPES_H_
43 #include "absl/status/status.h"
44 #include "absl/strings/string_view.h"
53 "The input key has null .storage().";
58 "The input objects belongs to another model.";
63 "the input does not belong to the same model";
72 if (expected_storage ==
nullptr) {
73 return absl::InternalError(
"expected_storage is nullptr");
75 if (storage !=
nullptr && storage != expected_storage) {
78 return absl::OkStatus();
constexpr absl::string_view kKeyHasNullModelStorage
constexpr absl::string_view kObjectsFromOtherModelStorage
absl::Status CheckModelStorage(const ModelStorage *const storage, const ModelStorage *const expected_storage)
constexpr absl::string_view kInputFromInvalidModelStorage
Collection of objects used to extend the Constraint Solver library.