Skip to content

  • Why “simplify C++”?
  • Contributions!
  • About me
  • Privacy/Contact

Write clean and maintainable C++

  • Why “simplify C++”?
  • Contributions!
  • About me
  • Privacy/Contact
  • Home
  • C++
  • Page 2

C++

  • Modern C++ Features

C++ Quizzes and Trick Questions – Do we Have to Know the Answers?

Arne Mertz November 7, 2018 0

If you follow some C++ social media accounts you will now and then encounter C++ quizzes and trick questions. Do we need to know the answers to be good C++ […]

Calling C Code from C++ With ‘extern “C”‘

Arne Mertz October 10, 2018 8

Now and then we have the need to call functionality that was written in C from our C++ programs. For that, we need to use and understand extern “C”.

std::make_shared vs. the Normal std::shared_ptr Constructor

std::make_shared vs. the Normal std::shared_ptr Constructor

Arne Mertz September 26, 2018 7

There are two different ways to create a std::shared_ptr: via one of its constructors and via std::make_shared. Both have their merits and different tradeoffs.

Same, same, but different: when different values compare equal

Arne Mertz September 19, 2018 2

In C++, there are a few ways how values that we would consider different compare equal. A short overview.

Modern C++ Features – Quality-of-Life Features

Arne Mertz September 12, 2018 7

With the new C++ standards, we got a lot of features that feel like “quality-of-life” features. They make things easier for the programmer but do not add functionality that wasn’t […]

“Modern C++” != “New(est) Standard”

Arne Mertz August 22, 2018 10

The term “Modern C++” is often used interchangeably with “Code using the new C++ standard”. Here, “new” may be anything from C++11 to C++17 or even whatever is available of […]

Functions of Variants are Covariant

Alfredo Correa June 27, 2018 1

Today I am happy to present a guest post by Alfredo Correa about covariant visitors for std::variant. Alfredo works at Lawrence Livermore National Laboratory where he uses C++ to develop […]

Modern C++ Features – std::optional

Arne Mertz June 6, 2018 6

Sometimes we want to express the state of “nothing meaningful” instead of a value. This is the use case for C++17’s std::optional.

Overload: Build a Variant Visitor on the Fly

Arne Mertz May 16, 2018 6

Having written about std::variant and std::visit last week, it’s time to string together some modern C++ features to build a naive basic implementation of overload, a proposed C++ feature.

Modern C++ Features – std::variant and std::visit

Arne Mertz May 9, 2018 6

std::variant is a library addition in C++17 for sum types, and std::visit is one of the ways to process the values in a std::variant.

Posts navigation

← Previous 1 2 3 … 12 Next →

Primary Sidebar

Recent Posts

  • Constexpr FizzBuzz – An Exercise in Compile-Time Calculations December 11, 2019
  • plf::list and the Disassembly of Time Complexity October 23, 2019
  • Multiple dispatch over covariant functions October 10, 2019

Popular Posts

  • C++ Online Compilers
  • Modern C++ Features - std::variant and std::visit
  • Modern C++ Features - Default Initializers for Member Variables

Archives

Categories

  • C++ (116)
    • Modern C++ Features (44)
  • Clean Code (65)
    • Design Patterns (11)
  • Development (41)
    • Tooling (16)
      • CMake (4)
  • DSL (4)
  • Fix (9)
  • General (11)
  • Guest Post (15)
  • Refactoring (28)
    • Refactoring-Session (5)
  • Testing (14)

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Visitors

  • 2382296Total visitors:
  • 555Visitors today:
  • 19Visitors currently online:

Recent Comments

  • Bernd Baumanns on Macro Evil in C++ Code
  • Arne Mertz on Modern C++ Features – std::begin/end and range based for loops
  • abel on Modern C++ Features – std::begin/end and range based for loops
  • abel on Modern C++ Features – Uniform Initialization and initializer_list
  • Arne Mertz on Modern C++ Features – Uniform Initialization and initializer_list
  • Privacy – Contact – Imprint
  • Twitter
  • LinkedIn
  • XING
  • Zülhke Engineering

Copyright © 2021 Simplify C++!. Powered by WordPress and Stargazer.