We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a386449 commit 4cb055fCopy full SHA for 4cb055f
book/en-us/04-containers.md
@@ -292,7 +292,7 @@ This will iterate over the tuple:
292
```cpp
293
for(int i = 0; i != tuple_len(new_tuple); ++i)
294
// runtime indexing
295
- std::cout << tuple_index(i, new_tuple) << std::endl;
+ std::cout << tuple_index(new_tuple, i) << std::endl;
296
```
297
298
## Conclusion
book/zh-cn/04-containers.md
@@ -292,7 +292,7 @@ auto tuple_len(T &tpl) {
// 迭代
// 运行期索引
## 总结
0 commit comments