//===-- A simple implementation of string stream class ----------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_LIBC_SRC___SUPPORT_CPP_STRINGSTREAM_H #define LLVM_LIBC_SRC___SUPPORT_CPP_STRINGSTREAM_H #include "span.h" #include "src/__support/macros/config.h" #include "string_view.h" #include "type_traits.h" #include "src/__support/integer_to_string.h" namespace LIBC_NAMESPACE_DECL { namespace cpp { // This class is to be used to write simple strings into a user provided buffer // without any dynamic memory allocation. There is no requirement to mimic the // C++ standard library class std::stringstream. class StringStream { … }; } // namespace cpp } // namespace LIBC_NAMESPACE_DECL #endif // LLVM_LIBC_SRC___SUPPORT_CPP_STRINGSTREAM_H