BSD Ports

devel/tl-expected 1.0.0 NetBSD

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

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
cc0-1.0-universal
Categories
devel
Package size
13.8 KiB, 94.5 KiB installed

Description

Single header implementation of std::expected with functional-style extensions.

std::expected is proposed as the preferred way to represent 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
NetBSDdevel/tl-expected1.0.0
FreeBSDdevel/tl-expected1.3.1
OpenBSDdevel/tl-expected1.3.1
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:

pkgin install tl-expected

From pkgsrc:

cd /usr/pkgsrc/devel/tl-expected && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.0.0
NetBSD 10.1 aarch641.0.0
SmartOS / illumos x86_641.0.0
macOS 15 arm641.0.0

Dependencies

Required by 1