Skip to content

cwecht/optionalcpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

optionalcpp

optional C++ is a blog, which is about writing a C++ optional implementation from scratch. You can find the blog here. This repository contains both, the blog and the source code of the optional implementation.

Build

Before you are trying to build the project, please make sure, that you checked out the submodules as well, using e.g. git submodule update --init.

cd optionalcpp
mkdir build
cd build
cmake ..
cmake --build . && ./test_optionalcpp

Formatting

In order to format the code, please stick to clang-format-10; using another version of clang-format will result in reformatting the whole code base.

clang-format-10 -i include/optional.hpp
clang-format-10 -i tests/tests.cpp

About

A blog about implemention an std::optional like type in C++.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published