General Purpose library for Freestanding C++ and POSIX systems
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

13 行
269 B

  1. #pragma once
  2. #include <concepts>
  3. template<typename T>
  4. concept ForwardIteratorLike = requires(T a) {
  5. {++a} -> auto;
  6. {*a} -> auto;
  7. };
  8. template<typename T>
  9. concept RangeLike = requires(T a) {
  10. {a.begin()} -> ForwardIteratorLike;
  11. {a.end()} -> ForwardIteratorLike;
  12. };