Please enable JavaScript.
Coggle requires JavaScript to display documents.
C++ STL - Coggle Diagram
C++ STL
Queue STL
-
-
-
queue<pair<datatype, datatype>> queueName
queueName.push(make_pair(ele, ele))
queueName.front(), queueName.back()
-
queueName.push(), queueName.pop()
pushes the element at the end of queue, popes the element from the front of queue
STRINGS
length of string -> strName.length(), strName.size()
-
-
-
to enter a string with space:
getline(cin, string)
Stack STL
-
-
-
-
Pair stack
stack<pair<datatype, datatype>> stack_of_pair;
-
Maps STL
map<datatype, datatype> mapName;
mapName.insert(pair<datatype, datatype>(element, element));
-
Unordered Maps
unordered_map<datatype, datatype> mapName
-