Returns one value attached to 'key', or 'default_value' if 'key'
is not in the multi-map. The actual value returned if more than one
values is attached to the same key is not specified.
[[["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\u003e\u003ccode\u003eRevImmutableMultiMap\u003c/code\u003e is a class within the OR-Tools constraint solver that provides a way to store and retrieve key-value pairs.\u003c/p\u003e\n"],["\u003cp\u003eIt allows insertion of new key-value pairs but does not support removal or modification of existing entries, ensuring immutability after initial population.\u003c/p\u003e\n"],["\u003cp\u003eThis class offers methods like \u003ccode\u003eContainsKey\u003c/code\u003e for checking the presence of a key, \u003ccode\u003eFindWithDefault\u003c/code\u003e for retrieving a value (or a default if not found), and \u003ccode\u003eInsert\u003c/code\u003e to add new pairs.\u003c/p\u003e\n"],["\u003cp\u003eUsers can ascertain the number of stored key-value pairs using the \u003ccode\u003enum_items\u003c/code\u003e method.\u003c/p\u003e\n"]]],["The `RevImmutableMultiMap` class in C++ provides methods for managing a multi-map. Key actions include checking for the existence of a key via `ContainsKey`, retrieving a value associated with a key using `FindWithDefault` (returning a default if the key is absent), and inserting key-value pairs with `Insert`. The number of items can be checked with `num_items`. It has also a constructor `RevImmutableMultiMap` and a destructor `~RevImmutableMultiMap`.\n"],null,["# RevImmutableMultiMap\n\nC++ Reference: class RevImmutableMultiMap\n=========================================\n\n\nNote: This documentation is automatically generated.\n\n| Method ||\n|-----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`ContainsKey`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L290) | Return type: `bool ` Arguments: `const K& key` Returns true if the multi-map contains at least one instance of 'key'. |\n| [`FindWithDefault`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L305) | Return type: `const V& ` Arguments: `const K& key, const V& default_value` Returns one value attached to 'key', or 'default_value' if 'key' is not in the multi-map. The actual value returned if more than one values is attached to the same key is not specified. |\n| [`Insert`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L318) | Return type: `void ` Arguments: `const K& key, const V& value` Inserts (key, value) in the multi-map. |\n| [`num_items`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L287) | Return type: `int ` \u003cbr /\u003e |\n| [`RevImmutableMultiMap`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L277) | \u003cbr /\u003e Arguments: `Solver* const solver, int initial_size` \u003cbr /\u003e |\n| [`~RevImmutableMultiMap`](https://github.com/google/or-tools/blob/v9.4/ortools/constraint_solver/constraint_solveri.h#L285) | \u003cbr /\u003e |"]]