OSDN Git Service
(root)
/
oi-wiki
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b04d35
)
Update container-adapter.md
author
ouuan
<y___o___u@126.com>
Sun, 25 Aug 2019 07:07:01 +0000
(15:07 +0800)
committer
GitHub
<noreply@github.com>
Sun, 25 Aug 2019 07:07:01 +0000
(15:07 +0800)
docs/lang/csl/container-adapter.md
patch
|
blob
|
history
diff --git
a/docs/lang/csl/container-adapter.md
b/docs/lang/csl/container-adapter.md
index
6ea8961
..
5b15cef
100644
(file)
--- a/
docs/lang/csl/container-adapter.md
+++ b/
docs/lang/csl/container-adapter.md
@@
-91,12
+91,11
@@
std::cout << q1.empty() << " " << q2.empty() << endl; // 1 0
## priority_queue
```cpp
-/* clang-format off */
#include <queue> // std::priority_queue
// 本文里的所有优先队列都会加上命名空间
// 如果不想加命名空间,需要使用:using std::priority_queue;
// 不推荐直接使用 using namespace std;
-std::priority_queue<T, Container, Compare>
+std::priority_queue<T, Container, Compare>
q;
/*
* T: 储存的元素类型
* Container: