FITFLOP
Home

const-correctness (4 post)


posts by category not found!

Calling non-const operator() on a const lambda object

Calling Non Const operator on a Const Lambda Object A C Conundrum Lets explore a common C scenario that can lead to confusion calling a non const member functio

2 min read 04-10-2024 34
Calling non-const operator() on a const lambda object
Calling non-const operator() on a const lambda object

Why is mutable lambda converted to function pointer instead of calling operator()?

Why Mutable Lambdas Become Function Pointers Not Function Calls Lets say you re working with a lambda function in C that needs to modify a variable captured by

2 min read 04-10-2024 79
Why is mutable lambda converted to function pointer instead of calling operator()?
Why is mutable lambda converted to function pointer instead of calling operator()?

Why are we able to change class object inside const member function

Unraveling the Mystery Why Can We Modify Class Objects Inside Const Member Functions Its a common misconception that const member functions in C cannot modify t

2 min read 30-09-2024 32
Why are we able to change class object inside const member function
Why are we able to change class object inside const member function

Const-correctness of std::reference_wrapper

Understanding std reference wrapper and Const Correctness The std reference wrapper is a powerful tool in C that allows you to work with references in a more fl

2 min read 29-09-2024 37
Const-correctness of std::reference_wrapper
Const-correctness of std::reference_wrapper