Conversion Chrono and Doxygen Flashcards

1
Q

How does a stream return as a boolean?

A

An explicit operator

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

What is an explicit operator?

A

A user-defined conversion function, use it to define conversion to specific data type.

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

Between operators and conversion functions, which takes priority?

A

operators.

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

What is the explicit keyword?

A

It prevents data conversion. Ex: if a function requires a double, but an int is provided, it will not convert.

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

Why does the operator take precedent over conversion function

A

Because it is fewer steps.
Ex: object + int, it is easier to return the operator overload than convert object to an int and then do the math

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

Which library contains the timekeeping methods?

A

<chrono>

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

PLACEHOLDER FOR MORE TIME NOTES

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