Skip to content

Commit

Permalink
機能テストマクロ追加 #1084
Browse files Browse the repository at this point in the history
  • Loading branch information
onihusube committed Sep 13, 2023
1 parent b950e12 commit d8142c9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lang/cpp23/feature_test_macros.md
@@ -0,0 +1,22 @@
# 機能テストマクロ
* cpp23[meta cpp]

## 概要

### 言語機能

| マクロ名 || 機能 |
|----------|----|------|
||||

### ライブラリ

ライブラリの機能テストマクロは全て[`<version>`](/reference/version.md)でも提供される。

| マクロ名 || 機能 | ヘッダ |
|----------|----|------|--------|
|`__cpp_lib_ranges_as_const`|`202207L`|`ranges::cbegin`が常に定数イテレータを返すようにする|[`<ranges>`](/reference/ranges.md)|

## 参照

- [SD-FeatureTest: Feature-Test Macros and Policies - isocpp](https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations)
1 change: 1 addition & 0 deletions reference/version.md
Expand Up @@ -13,6 +13,7 @@
- [C++14 機能テストマクロ](/lang/cpp14/feature_test_macros.md)
- [C++17 機能テストマクロ](/lang/cpp17/feature_test_macros.md)
- [C++20 機能テストマクロ](/lang/cpp20/feature_test_macros.md)
- [C++23 機能テストマクロ](/lang/cpp23/feature_test_macros.md)

## 参照
- [P0754R2 `<version>`](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0754r2.pdf)

0 comments on commit d8142c9

Please sign in to comment.