Registry / utility / tl-expected

tl-expected

JSON →
library1.3.1vcpkgunverified

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

vcpkg install tl-expected
INSTALL
IMPORT
SIG · TL-EXPECTED
T
tl-expected
utilitycppv1.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tl/expected.hpp
#include <tl/expected.hpp>

Error handling with expected

#include <tl/expected.hpp> #include <string> tl::expected<int, std::string> divide(int a, int b) { if (b == 0) return tl::make_unexpected("division by zero"); return a / b; } int main() { auto result = divide(10, 2); if (result) { // use *result } return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

tl-expected — pip install tl-expected · libregistry