MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
mtcore::MutableAddressable 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::MutableAddressable = requires(T &t) {
{ t.size() } -> std::convertible_to<size_t>;
{ t.at(0) } -> std::same_as<typename T::Elem &>;
{ t[0] } -> std::same_as<typename T::Elem &>;
The Addressable trait for types Something that implements this trait allows addressing items by index...
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 77 of file core/mtcore/traits.hpp.