concepts: add cbegin/cend requirements to iterable
This commit is contained in:
parent
0c199eaf44
commit
7550ad7c23
@ -293,8 +293,10 @@ namespace cruft::concepts {
|
||||
template <typename T>
|
||||
concept iterable = requires (T t)
|
||||
{
|
||||
{ std::begin (t) } -> legacy_iterator;
|
||||
{ std::end (t) } -> legacy_iterator;
|
||||
{ std::begin (t) } -> legacy_iterator;
|
||||
{ std::end (t) } -> legacy_iterator;
|
||||
{ std::cbegin (t) } -> legacy_iterator;
|
||||
{ std::cend (t) } -> legacy_iterator;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user