General Utility Library for C++14  2.11
expected.h File Reference

Detailed Description

Provides a gul14::expected that implements the main functionality of C++23's std::expected.

Sy Brand, General Utility Library Contributors

This file is based on version 1.1.0 of Sy Brand's expected.h header from

Documentation available at

To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.

You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see

#include <cassert>
#include <exception>
#include <functional>
#include <type_traits>
#include <utility>
#include "gul14/traits.h"
#include "gul14/utility.h"
Include dependency graph for expected.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


 Namespace gul14 contains all functions and classes of the General Utility Library.