|
Common System 0.2.0
Common interfaces and patterns for system integration
|
Core C++20 concepts for Result/Optional types. More...
#include <concepts>#include <type_traits>#include <functional>

Go to the source code of this file.
Namespaces | |
| namespace | kcenon |
| namespace | kcenon::common |
| Core interfaces. | |
| namespace | kcenon::common::concepts |
| C++20 concepts for compile-time type validation. | |
Concepts | |
| concept | kcenon::common::concepts::Resultable |
| A type that can contain either a value or an error. | |
| concept | kcenon::common::concepts::Unwrappable |
| A type that supports value extraction (unwrapping). | |
| concept | kcenon::common::concepts::Mappable |
| A type that supports monadic map operations. | |
| concept | kcenon::common::concepts::Chainable |
| A type that supports monadic chaining (flatMap/and_then). | |
| concept | kcenon::common::concepts::MonadicResult |
| A complete Result-like type with all monadic operations. | |
| concept | kcenon::common::concepts::OptionalLike |
| A type that represents an optional value (present or absent). | |
| concept | kcenon::common::concepts::ErrorInfo |
| A type that contains error information. | |
| concept | kcenon::common::concepts::ValueOrError |
| A type that holds either a value or error information. | |
Core C++20 concepts for Result/Optional types.
This header provides fundamental concepts for types that support error handling patterns similar to Rust's Result and Option types. These concepts enable compile-time validation with clear error messages.
Requirements:
Thread Safety:
Definition in file core.h.