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

The Addressable trait for types Something that implements this trait allows addressing items by index. More...

#include <traits.hpp>

Concept definition

template<typename T>
concept mtcore::Addressable = requires(const T &c) {
{ c.size() } -> std::convertible_to<size_t>;
{ c.at(0) } -> std::convertible_to<const typename T::Elem &>;
{ c[0] } -> std::convertible_to<const typename T::Elem &>;
}
The Addressable trait for types Something that implements this trait allows addressing items by index...

Detailed Description

The Addressable trait for types Something that implements this trait allows addressing items by index.

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