Skip to content

EliseBriers/cpp-structured-bindings

Repository files navigation

Structured Bindings Examples

Git repo for the video C++ Structured Bindings: How, Why, and Why not.
By Elise++


Introduction

This repo contains all the code files shown in the video C++ Structured Bindings: How, Why, and Why not. It shows how structured bindings can make code shorter and more readable. It also covers some common pitfalls and when you'd want to avoid using them.

Building and testing

Manually

Build the project using cmake and a compiler with C++ 20 abilities. Most modern compilers should work. Making the file will result in the unit tests getting executed automatically.

git clone https://github.com/EliseBriers/cpp-structured-bindings
cd cpp-structured-bindings
mkdir build
cd build
cmake ..
cmake --build .

Visual Studio (Windows)

The easiest way to build and run the project on windows is opening it in a recent version of Vidual Studio. This project has been tested using Visual Studio 2022.

About

Code for the video "C++ Structured Bindings: How, Why, and Why not".

Topics

Resources

License

Stars

Watchers

Forks