This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: | |
# void StringPieceIterTestVal(const std::vector<base::StringPiece>& vector) { | |
# for (base::StringPiece piece : vector) | |
# std::fwrite(piece.data(), piece.size(), 1, stdout); | |
# } | |
# | |
# void StringPieceIterTestRef(const std::vector<base::StringPiece>& vector) { | |
# for (const base::StringPiece& piece : vector) | |
# std::fwrite(piece.data(), piece.size(), 1, stdout); | |
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: | |
# void StringPieceFindTestVal(const std::vector<base::StringPiece>& vector) { | |
# for (base::StringPiece piece : vector) | |
# printf("%zu\n", piece.find('x')); | |
# } | |
# | |
# Compiler: clang++ Linux 64-bit | |
# BB#0: # %entry | |
pushq %rbp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: | |
# void StringPieceFindTestRef(const std::vector<base::StringPiece>& vector) { | |
# for (const base::StringPiece& piece : vector) | |
# printf("%zu\n", piece.find('x')); | |
# } | |
# | |
# Compiler: clang++ Linux 64-bit | |
# BB#0: # %entry | |
pushq %rbp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: | |
# void StringPieceFindTestVal(const std::vector<base::StringPiece>& vector) { | |
# for (base::StringPiece piece : vector) | |
# printf("%zu\n", piece.find('x')); | |
# } | |
# | |
# void StringPieceFindTestRef(const std::vector<base::StringPiece>& vector) { | |
# for (const base::StringPiece& piece : vector) | |
# printf("%zu\n", piece.find('x')); | |
# } |