BSD Ports

devel/tl-expected 1.3.1 OpenBSD

C++11/14/17 std::expected with functional-style extensions

System
OpenBSD
Repository
OpenBSD ports
Maintainer
Klemens Nanni <[email protected]>
Categories
devel

Description

tl-expected is a single header implementation of `std::expected` with functional-style extensions.

std::expected is proposed as the preferred way to represent an object which will either have an expected value, or an unexpected value giving information about why something failed. Unfortunately, chaining together many computations which may fail can be verbose, as error-checking code will be mixed in with the actual programming logic. This implementation provides a number of utilities to make coding with expected cleaner.

In the other systems

SystemPortVersion
OpenBSDdevel/tl-expected1.3.1
FreeBSDdevel/tl-expected1.3.1
NetBSDdevel/tl-expected1.0.0
DragonFlydevel/tl-expected1.1.0_1
MidnightBSDdevel/tl-expected1.1.0_1
HardenedBSDdevel/tl-expected1.3.1
GhostBSDdevel/tl-expected1.3.1

Install

Binary package:

pkg_add tl-expected

From the ports tree:

cd /usr/ports/devel/tl-expected && make install

Dependencies

Build dependencies 2