C++:
List (std::list):
push_back(value): Adds an element to the end of the list.push_front(value): Adds an element to the beginning of the list.pop_back(): Removes the last element from the list.pop_front(): Removes the first element from the list.insert(iterator, value): Inserts an element before the specified position.erase(iterator): Removes the element at the specified position.size(): Returns the number of elements in the list.
Map (std::map):
insert(pair): Inserts a key-value pair into the map.erase(key): Removes the element with the specified key from the map.find(key): Searches the map for the specified key and returns an iterator to it.size(): Returns the number of elements in the map.begin(),end(): Returns iterators pointing to the beginning and past-the-end elements of the map.
Java:
List (java.util.List):
add(element): Adds an element to the end of the list.add(index, element): Inserts an element at the specified position in the list.remove(index): Removes the element at the specified position from the list.get(index): Returns the element at the specified position in the list.size(): Returns the number of elements in the list.
Map (java.util.Map):
put(key, value): Associates the specified value with the specified key in the map.get(key): Returns the value associated with the specified key in the map.remove(key): Removes the mapping for the specified key from the map.containsKey(key): Returns true if the map contains a mapping for the specified key.size(): Returns the number of key-value mappings in the map.