-
std::reference_wrapper
std::reference_wrapper is a utility template class that wraps references in a copyable objects.
~2 min read- #short
- #c++
-
std::bit_cast
std::bit_cast is an addition to the C++ standard library that makes type punning a bit easier and safer.
~2 min read- #short
- #c++
-
Pointers vs references
What is the difference between a pointer and a reference? Can they be used interchangeably? What are the advantages and disadvantages of both.
~3 min read- #short
- #c++
-
Null pointers
What are null pointers? How to properly initialize a pointer to null? What are the dangers of using null pointers?
~2 min read- #short
- #c++