string_piece_forward.h 689 B

123456789101112131415161718192021222324
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // Forward declaration of StringPiece types from base/strings/string_piece.h
  5. #ifndef BASE_STRINGS_STRING_PIECE_FORWARD_H_
  6. #define BASE_STRINGS_STRING_PIECE_FORWARD_H_
  7. #include <string>
  8. #include "base/strings/string16.h"
  9. namespace base {
  10. template <typename STRING_TYPE>
  11. class BasicStringPiece;
  12. typedef BasicStringPiece<std::string> StringPiece;
  13. typedef BasicStringPiece<string16> StringPiece16;
  14. typedef BasicStringPiece<std::wstring> WStringPiece;
  15. } // namespace base
  16. #endif // BASE_STRINGS_STRING_PIECE_FORWARD_H_