Fluent Programmer wrote What is new in library in C++17? π The library in C++ STL C++17 introduces several new algorithms and overloads, including the following: Read more
Fluent Programmer wrote Beautiful code #6 - std::copy_if, std::remove_copy_if, std::copy, std::execution::par_unseq, std::back_inserter π std::copy_if, std::remove_copy_if, std::copy, std::back_inserter, and std::execution::par_unseq are features from C++11 and C++98 that helps β¦ Read more
Fluent Programmer wrote Beautiful code #5 - std::for_each, std::ranges::for_each, std::optional, std::execution::par_unseq, mutable π std::for_each, std::ranges::for_each, std::optional, and std::execution::par_unseq are features from C++20 and C++23 that helps efficiently loop β¦ Read more
Fluent Programmer wrote Beautiful code #4 - std::any_of, std::none_of, std::all_of - efficient C++20 featureπ std::any_of, std::none_of and std::all_of is a C++20 feature that helps efficiently check for basic conditions in the data structures. This is very β¦ Read more
Fluent Programmer wrote Beautiful code #3 - [[no_unique_address]] - sophisticated and simple C++20 featureπ [[no_unique_address]] is a C++ 20 feature that helps in saving memory while declaring an empty struct or class and creating object for it in some β¦ Read more
Fluent Programmer wrote Beautiful code #2 - enable_if_t and template inside a template code π In this short article, I have posted a code snippet that uses enable_if_t to handle SFINAE and also showed how to use a template inside a template. Read more
Fluent Programmer wrote C++ Best Practice #1: Don’t simply use: using namespace std; π Never try to import the whole std namespace into your program. Namespaces are developed to avoid naming conflicts. But, when we import the whole β¦ Read more