Blog

Page 738 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for What is the effect of extern "C" in C++?
c#

What is the effect of extern "C" in C++?

Published on September 2, 2023

šŸ”ŒšŸ”Ž What is the effect of `extern "C"` in C++? šŸ¤” Have you ever stumbled upon the `extern "C"` declaration while working with C++ code? šŸ¤·ā€ā™‚ļø Wondering what it actually does and how it can impact your code? We've got you covered! In this blog post, we'll

Cover Image for How to convert int to string in C++?
integerstringtype-conversion

How to convert int to string in C++?

Published on September 2, 2023

# Converting int to string in C++: A Handy Guide So, you found yourself in a situation where you need to convert an `int` to its equivalent `string` in C++? No worries, my friend! I've got you covered. šŸš€ ## The Challenge Let's take a look at the contex

Cover Image for Why are elementwise additions much faster in separate loops than in a combined loop?
performancevectorization

Why are elementwise additions much faster in separate loops than in a combined loop?

Published on September 2, 2023

# Why are elementwise additions much faster in separate loops than in a combined loop? šŸ’ØšŸ”€šŸ”„ Have you ever wondered why elementwise additions are much faster in separate loops than in a combined loop? šŸ¤” In this blog post, we will dive into this question

Cover Image for How do I profile C++ code running on Linux?

How do I profile C++ code running on Linux?

Published on September 2, 2023

# šŸš€ How to Profile C++ Code Running on Linux: A Complete Guide! 🐧 If you're a C++ developer, you might have encountered the challenge of identifying slow areas in your code. Fortunately, profiling your C++ code running on Linux is not as daunting as it

Cover Image for What is a smart pointer and when should I use one?

What is a smart pointer and when should I use one?

Published on September 2, 2023

# What is a Smart Pointer? šŸ§ šŸ”— Have you ever heard of the term "smart pointer"? šŸ¤” If you're a developer or an aspiring one, this concept might sound familiar. But what exactly is a smart pointer and when should you use one? šŸ¤·ā€ā™‚ļøšŸ’­ In this article, we'l

Cover Image for C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?
multithreading

C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?

Published on September 2, 2023

# Understanding the C++11 Memory Model: Demystified! šŸ’” **Introduction** C++11, the groundbreaking update to the C++ programming language, brought along with it many important features and enhancements. Among them is the introduction of a standardized me

Cover Image for What is the copy-and-swap idiom?
assignment-operator

What is the copy-and-swap idiom?

Published on September 2, 2023

# šŸ” Decoding the Copy-and-Swap Idiom: A Complete Guide to Simplify Your Code Have you ever wondered what the copy-and-swap idiom is and how it can be used in your C++ code? šŸ¤” Well, you've come to the right place! In this blog post, we'll break down this

Cover Image for Why can templates only be implemented in the header file?

Why can templates only be implemented in the header file?

Published on September 2, 2023

# šŸš€ The Magic of Templates: Why They Can Only be Implemented in Header Files šŸŽ© šŸ‘‹ Hey there, fellow tech enthusiasts! Have you ever wondered why templates in C++ can only be implemented in header files? You're not alone! It's a common question that spar

Cover Image for What are the basic rules and idioms for operator overloading?
operators

What are the basic rules and idioms for operator overloading?

Published on September 2, 2023

# Operator Overloading: A Guide to the Basics šŸŽÆ Are you ready to level up your programming skills and dive into the world of operator overloading in C++? šŸš€šŸ’» In this blog post, we'll walk you through the basic rules and idioms for operator overloading,

Blog | Matheus Mello