containers Flashcards

1
Q

abstract data types(ADT)

A

defined by the operations they provide

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

map

A

a container that associates keys to values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

If the map does not contain the specified key, the at() function…

A

throws an out_of_range exception

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

if a map does not contain the specified key…

A

the [ ] operator creates a new entry in the map with the key and the default value for the map’s value type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

emplace()

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

set

A

a collection of unique elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

queue

A

a container of ordered elements, FIFO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

dequeue

A

a container of ordered elements that supports insertion and removal at both ends

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

stack

A

a container where only the topmost element can be accessed, LIFO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly