C++ Articles

Sorted By: Most Recent
Odumosu Matthew Odumosu Matthew
Updated on November 11, 2024

Understanding “Using Namespace STD;” in C++ and Better Alternatives

In C++, the line “using namespace std” signals to the compiler to treat all names in the std like they’re from the global namespace. Here’s why that’s an issue.

Image: Shutterstock / Built In
Swastik Baranwal Swastik Baranwal
Updated on September 23, 2024

A Guide to C++ Or, And and Not Logical Operators

In modern C++, or and and not are keywords that can be used to replace the boolean opeartors &&, || and !, respectively. Learn more.

Image: Shutterstock / Built In
Swastik Baranwal Swastik Baranwal
Updated on September 05, 2024

STD::Optional in C++: A Guide

std::optional is a feature in C++ that can distinguish optional values in a type-safe manner to make code more readable and consistent. Learn more.

Image: Shutterstock / Built In
Nick Hodges Nick Hodges
Updated on June 11, 2024

Dependency Injection: Everything You Need to Know

Dependency injection is a technique in which you make the interactions between objects as minimal as possible through specific dependencies. Here’s what to know.  

Image: Shutterstock / Built In