-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
container-compatible-rangeコンセプトを追加 #1069
- Loading branch information
1 parent
1e33730
commit f3f7503
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# container-compatible-range | ||
* exposition-only[meta header] | ||
* concept[meta id-type] | ||
* cpp23[meta cpp] | ||
|
||
```cpp | ||
namespace std { | ||
template<class R, class T> | ||
concept container-compatible-range = | ||
ranges::input_range<R> && convertible_to<ranges::range_reference_t<R>, T>; | ||
} | ||
``` | ||
* ranges::input_range[link /reference/ranges/input_range.md] | ||
* ranges::range_reference[link /reference/ranges/range_reference_t.md] | ||
* convertible_to[link /reference/concepts/convertible_to.md] | ||
## 概要 | ||
container-compatible-rangeは、指定されたコンテナと互換性のあるRangeであることを表すコンセプトである。 | ||
## バージョン | ||
### 言語 | ||
- C++23 | ||
## 参照 | ||
- [P1206R7 `ranges::to`: A function to convert any range to a container](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p1206r7.pdf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters