Fluent::Programmer

    Home Blog About
  • Home
  • Blog
  • About
  • c++
  • beautiful-code-series
  • linux
  • algorithms
  • assembly-language
  • c-programming
  • network-programming

Beautiful code series

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 efficiently copy from one data structure to the another.

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 through the loop, loop in parallel, add optional values in the data structure of your choice, etc.

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 optimal because of early termination once some fact is found and the algorithm don’t have to iterate more to further prove anything before returning the result.

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 other place.

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.

Fluent Programmer wrote

Beautiful code #1 - Using define, templates and r-value reference ๐Ÿ‘‹

In this short article, I have posted an example that does the reinterpret_cast on an integer and convert it to char pointer and then the value pointed by the char pointer is converted to r-value reference all in a macro.

  • C++
  • Systems & Network
  • C programming
  • Beautiful code
  • Design patterns
  • Linux
  • Open Source
  • Algorithms
  • Data Structures
  • System design
  • Distributed systems
  • Kernel
  • Assembly language
  • Hardware
  • Ultra Low Latency
  • Inspiration

Unhealthy love with dark corners of C++

Founded by an engineer to help engineers. 2021โ€“2023.

Fluentprogrammer.com is a brand name managed by Abyan, Inc.

  • About us
  • Privacy policy