C++ Reference: class RevImmutableMultiMap
Note: This documentation is automatically generated.
Method |
ContainsKey | Return type: bool Arguments: const K& key Returns true if the multi-map contains at least one instance of 'key'.
|
FindWithDefault | 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.
|
Insert | Return type: void Arguments: const K& key, const V& value Inserts (key, value) in the multi-map.
|
num_items | Return type: int |
RevImmutableMultiMap | Arguments: Solver* const solver, int initial_size |
~RevImmutableMultiMap | |
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."],[[["`RevImmutableMultiMap` is a class within the OR-Tools constraint solver that provides a way to store and retrieve key-value pairs."],["It allows insertion of new key-value pairs but does not support removal or modification of existing entries, ensuring immutability after initial population."],["This class offers methods like `ContainsKey` for checking the presence of a key, `FindWithDefault` for retrieving a value (or a default if not found), and `Insert` to add new pairs."],["Users can ascertain the number of stored key-value pairs using the `num_items` method."]]],[]]