[libcxx-commits] [PATCH] D102434: [libcxx][ranges] adds concept `sized_range` and cleans up `ranges::size`
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 18 12:26:11 PDT 2021
Mordante accepted this revision.
Mordante added a comment.
This revision is now accepted and ready to land.
LGTM!
================
Comment at: libcxx/include/__ranges/concepts.h:10
#ifndef _LIBCPP_RANGES_CONCEPTS_H
#define _LIBCPP_RANGES_CONCEPTS_H
----------------
Not part of your changes, but can you use a triple underscore? `_LIBCPP_RANGES_CONCEPTS_H` -> `_LIBCPP___RANGES_CONCEPTS_H`
================
Comment at: libcxx/test/std/ranges/range.req/range.sized/sized_range.compile.pass.cpp:49
+static_assert(stdr::sized_range<const_range_has_size>);
+static_assert(stdr::range<const_range_has_size const>);
+static_assert(!stdr::sized_range<const_range_has_size const>);
----------------
Why is this the only one to check `stdr::range`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102434/new/
https://reviews.llvm.org/D102434
More information about the libcxx-commits
mailing list