Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
folly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
folly
Commits
8925b642
Commit
8925b642
authored
Aug 11, 2014
by
Lucian Grijincu
Committed by
Sara Golemon
Aug 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
folly: operator << for MutableStringPiece
Test Plan: n.a Reviewed By: philipp@fb.com FB internal diff: D1487919
parent
f13e9e39
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
folly/Range.cpp
folly/Range.cpp
+5
-0
folly/Range.h
folly/Range.h
+1
-0
No files found.
folly/Range.cpp
View file @
8925b642
...
...
@@ -37,6 +37,11 @@ std::ostream& operator<<(std::ostream& os, const StringPiece& piece) {
return
os
;
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
MutableStringPiece
&
piece
)
{
os
.
write
(
piece
.
start
(),
piece
.
size
());
return
os
;
}
namespace
detail
{
size_t
qfind_first_byte_of_memchr
(
const
StringPiece
&
haystack
,
...
...
folly/Range.h
View file @
8925b642
...
...
@@ -804,6 +804,7 @@ typedef Range<const unsigned char*> ByteRange;
typedef
Range
<
unsigned
char
*>
MutableByteRange
;
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
StringPiece
&
piece
);
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
MutableStringPiece
&
piece
);
/**
* Templated comparison operators
...
...
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