summaryrefslogtreecommitdiffstats
path: root/chromium/base/strings/string_piece.h
blob: 8ef94e517e8b93070805729da369c2ebb7e5725f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This header is deprecated. `base::StringPiece` is now `std::string_view`.
// Use it and <string_view> instead.
//
// TODO(crbug.com/691162): Remove uses of this header.

#ifndef BASE_STRINGS_STRING_PIECE_H_
#define BASE_STRINGS_STRING_PIECE_H_

#include <string_view>

namespace base {

using StringPiece = std::string_view;
using StringPiece16 = std::u16string_view;

}  // namespace base

#endif  // BASE_STRINGS_STRING_PIECE_H_