Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
7318bee3
Commit
7318bee3
authored
Dec 14, 2018
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move all functions in stl_utils.h into namespace butil
parent
3becc728
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
stl_util.h
src/butil/stl_util.h
+2
-2
No files found.
src/butil/stl_util.h
View file @
7318bee3
...
...
@@ -15,6 +15,8 @@
#include "butil/logging.h"
namespace
butil
{
// Clears internal memory of an STL object.
// STL clear()/reserve(0) does not always free internal memory allocated
// This function uses swap/destructor to ensure the internal memory is freed.
...
...
@@ -196,8 +198,6 @@ bool ContainsKey(const Collection& collection, const Key& key) {
return
collection
.
find
(
key
)
!=
collection
.
end
();
}
namespace
butil
{
// Returns true if the container is sorted.
template
<
typename
Container
>
bool
STLIsSorted
(
const
Container
&
cont
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment