Blog Posts

Recent posts

C++ - decltype example

less than 1 minute read

The following code is trying to make a reference to avoid the copy 1 auto& element = *pos;

C++ - static_pointer_cast

less than 1 minute read

C++11 introduce the static_pointer_cast which will allow to case the shared_ptr to another type without runtime checking.

C++ - std::type_identity_t

less than 1 minute read

std::type_identity_t was introduced in C++20. Main purpose of this type alias has the following reasons.