TLE92466ED Driver 2.0.0
API reference
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
tle92466ed_expected.hpp File Reference

C++20-compatible expected<T,E> polyfill for TLE92466ED driver. More...

#include <cstdint>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  tle::unexpected< E >
 Wrapper for an error value (mirrors std::unexpected) More...
 
class  tle::expected< T, E >
 Expected type — holds either a value of type T or an error of type E. More...
 
class  tle::expected< void, E >
 Specialization for void value type (expected<void, E>) More...
 

Namespaces

namespace  tle
 

Functions

template<typename E >
 tle::unexpected (E) -> unexpected< E >
 Deduction guide.
 

Detailed Description

C++20-compatible expected<T,E> polyfill for TLE92466ED driver.

Provides tle::expected<T,E> and tle::unexpected<E> types that:

This header is self-contained — it has no dependencies on other HardFOC libraries and can be used by the driver alone.

Note
This polyfill only implements the subset of std::expected that the TLE92466ED driver actually uses. It is NOT a full std::expected replacement.