v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::base::FormattedString< Ts > Class Template Reference

#include <string-format.h>

Collaboration diagram for v8::base::FormattedString< Ts >:

Public Member Functions

 FormattedString ()
 
template<typename T >
V8_WARN_UNUSED_RESULT auto operator<< (T &&t) const &&
 
V8_INLINE V8_WARN_UNUSED_RESULT std::array< char, kMaxLenPrintToArray () const
 

Static Public Attributes

static constexpr int kMaxLen = (1 + ... + Part<Ts>::kMaxLen)
 
static constexpr std::string_view kFormat
 

Private Types

template<typename T >
using Part = impl::FormattedStringPart<T>
 

Private Member Functions

 FormattedString (std::tuple< Part< Ts >... > parts)
 

Private Attributes

std::tuple< Part< Ts >... > parts_
 

Friends

template<typename... Us>
class FormattedString
 

Detailed Description

template<typename... Ts>
class v8::base::FormattedString< Ts >

Definition at line 137 of file string-format.h.

Member Typedef Documentation

◆ Part

template<typename... Ts>
template<typename T >
using v8::base::FormattedString< Ts >::Part = impl::FormattedStringPart<T>
private

Definition at line 139 of file string-format.h.

Constructor & Destructor Documentation

◆ FormattedString() [1/2]

template<typename... Ts>
v8::base::FormattedString< Ts >::FormattedString ( )
inline

Definition at line 149 of file string-format.h.

◆ FormattedString() [2/2]

template<typename... Ts>
v8::base::FormattedString< Ts >::FormattedString ( std::tuple< Part< Ts >... > parts)
inlineexplicitprivate

Definition at line 178 of file string-format.h.

Member Function Documentation

◆ operator<<()

template<typename... Ts>
template<typename T >
V8_WARN_UNUSED_RESULT auto v8::base::FormattedString< Ts >::operator<< ( T && t) const &&
inline

Definition at line 159 of file string-format.h.

◆ PrintToArray()

template<typename... Ts>
V8_INLINE V8_WARN_UNUSED_RESULT std::array< char, kMaxLen > v8::base::FormattedString< Ts >::PrintToArray ( ) const
inline

Definition at line 167 of file string-format.h.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ FormattedString

template<typename... Ts>
template<typename... Us>
friend class FormattedString
friend

Definition at line 176 of file string-format.h.

Member Data Documentation

◆ kFormat

template<typename... Ts>
std::string_view v8::base::FormattedString< Ts >::kFormat
staticconstexpr
Initial value:
=
impl::JoinedStringViews<Part<Ts>::kFormatPart...>::string_view

Definition at line 146 of file string-format.h.

◆ kMaxLen

template<typename... Ts>
int v8::base::FormattedString< Ts >::kMaxLen = (1 + ... + Part<Ts>::kMaxLen)
staticconstexpr

Definition at line 145 of file string-format.h.

◆ parts_

template<typename... Ts>
std::tuple<Part<Ts>...> v8::base::FormattedString< Ts >::parts_
private

Definition at line 180 of file string-format.h.


The documentation for this class was generated from the following file: