mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
commit
dde3cc5c20
|
@ -10411,7 +10411,7 @@ The user of `bar` cannot know if the interface used is complete and correct. At
|
||||||
**Example**:
|
**Example**:
|
||||||
|
|
||||||
#include<vector>
|
#include<vector>
|
||||||
#include<algorithms>
|
#include<algorithm>
|
||||||
#include<string>
|
#include<string>
|
||||||
|
|
||||||
// ... my code here ...
|
// ... my code here ...
|
||||||
|
@ -10419,11 +10419,12 @@ The user of `bar` cannot know if the interface used is complete and correct. At
|
||||||
**Example, bad**:
|
**Example, bad**:
|
||||||
|
|
||||||
#include<vector>
|
#include<vector>
|
||||||
#include<algorithms>
|
|
||||||
#include<string>
|
|
||||||
|
|
||||||
// ... my code here ...
|
// ... my code here ...
|
||||||
|
|
||||||
|
#include<algorithm>
|
||||||
|
#include<string>
|
||||||
|
|
||||||
**Note**: This applies to both `.h` and `.cpp` files.
|
**Note**: This applies to both `.h` and `.cpp` files.
|
||||||
|
|
||||||
**Exception**: Are there any in good code?
|
**Exception**: Are there any in good code?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user