doc/docs/code/10/10.1.without.concepts.cpp
sairate c34823a3bd docs(book): 添加现代 C++教程及相关代码
- 新增现代 C++ 教程的 Preface 章节,包括英文和中文版本
- 添加 C++ Primer 练习代码
- 新增 Learn C++ 教程的 C++ 开发简介章节
- 添加头文件解析文档
- 更新 mkdocs.yml,包含新教程的目录结构
- 修改项目设置,使用 Python 3.10环境
2025-07-06 14:46:58 +08:00

18 lines
335 B
C++

//
// 10.1.without.concepts.cpp
// chapter 10 cpp20
// modern c++ tutorial
//
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial
//
#include <list>
#include <algorithm>
int main() {
std::list<int> l = {1, 2, 3};
// std::sort(l.begin(), l.end()); // tons of compile error
return 0;
}