Mini Map
Log In
Secure Coding Practices in C++: A Deep Dive into const
0%
Show Skipped Chapters
1.
Introduction
A Bit about const
2.
Arguments using const
Arguments Against const
const and Visual Noise
How const may Confuse Developers
Why does const matter?
Key Takeaways
Quiz
3.
Local Variables
const Local Variables
Key Takeaways
Quiz
4.
Local Members
const with Member Variables
Unexpected Implications
Find a Workaround
Move Semantics
Key Takeaways
Quiz
Exercise
Solution
5.
Functions
const Functions
const Overloads
Key Takeaways
Quiz
Exercise
Solution
6.
Return Types
const Return Types
Returning const References
Return const Pointers
int * const func() const
const int * func() const
Key Takeaways
Quiz
7.
const Parameters
const Primitive Data Type
const Class Type Parameters
Ignoring the const
const Qualifier
Key Takeaways
Quiz
8.
const and Smart Pointers
Smart Pointers as Pointers
Smart Pointers as Objects
Key Takeaways
Quiz
9.
Rvalue References
const Rvalue References
Binding Rules
Use of const Rvalue References
Key Takeaways
Quiz
Exercise
Solution
10.
Summary
Summary
Secure Coding Practices in C++: A Deep Dive into const
/
...
/
Exercise
Exercise
Let's test your knowledge of constness with this exercise.
We'll cover the following...
Problem statement:
The following
...