BSD Ports

devel/tl-expected 1.1.0_1 MidnightBSD

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

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
CC0-1.0
Categories
devel

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
MidnightBSDdevel/tl-expected1.1.0_1
FreeBSDdevel/tl-expected1.3.1
OpenBSDdevel/tl-expected1.3.1
NetBSDdevel/tl-expected1.0.0
DragonFlydevel/tl-expected1.1.0_1
HardenedBSDdevel/tl-expected1.3.1
GhostBSDdevel/tl-expected1.3.1

Install

Binary package:

mport install tl-expected

From mports:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	tl-expected>0:devel/tl-expected

Dependencies

Required by 1

Configuration

Options name: devel_tl-expected

OptionDefaultDescription
TESTSoffBuild tests
USES
cmake
Service scripts
none

Files

distinfo 2
FileSizeSHA256
TartanLlama-expected-v1.1.0_GH0.tar.gz237471db357f46dd2b24447156aaf970c4c40a793ef12a8a9c2ad9e096d9801368df6
catchorg-Catch2-v2.13.10_GH0.tar.gz662225d54a712b7b1d7708bc7a819a8e6e47b2fde9536f487b89ccbca295072a7d9943