1 // Copyright 2018 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.
5 #include "base/type_id.h"
7 #include "base/strings/string_number_conversions.h"
10 namespace experimental {
12 std::string TypeId::ToString() const {
14 return function_name_;
16 return NumberToString(reinterpret_cast<uintptr_t>(type_id_));
20 std::ostream& operator<<(std::ostream& out, const TypeId& type_id) {
21 return out << type_id.ToString();
24 } // namespace experimental