MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::ReaderImpl Concept Reference

Represents an implementation of a reader (basically checks if the type can be wrapped with Reader<>) More...

#include <traits.hpp>

Concept definition

template<typename T>
concept mtcore::ReaderImpl = requires(T &t, size_t s, Slice<std::remove_const_t<typename T::ReadElem>> outBuff) {
{ T::ErrType::END_OF_FILE };
{ T::ErrType::ALLOCATION_FAILED };
{ T::ErrType::SIZE_EXCEEDED };
}
Represents an implementation of a reader (basically checks if the type can be wrapped with Reader<>)
Represents a type that fulfills the "result" contract while having a success value of a specific type...
A Slice which is just a pointer + length Accessing elements through the array operator will do bounds...

Detailed Description

Represents an implementation of a reader (basically checks if the type can be wrapped with Reader<>)

Definition at line 250 of file core/mtcore/traits.hpp.