• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // Forward declaration of StringPiece types from base/strings/string_piece.h.
6 
7 #ifndef BASE_STRINGS_STRING_PIECE_FORWARD_H_
8 #define BASE_STRINGS_STRING_PIECE_FORWARD_H_
9 
10 #include <iosfwd>
11 
12 namespace base {
13 
14 template <typename CharT, typename Traits = std::char_traits<CharT>>
15 class BasicStringPiece;
16 using StringPiece = BasicStringPiece<char>;
17 using StringPiece16 = BasicStringPiece<char16_t>;
18 using WStringPiece = BasicStringPiece<wchar_t>;
19 
20 }  // namespace base
21 
22 #endif  // BASE_STRINGS_STRING_PIECE_FORWARD_H_
23