microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | List of all members
microfmt::as_string_view Class Reference

Non-owning string view supporting advanced format specifiers. More...

#include <string.hpp>

Public Member Functions

constexpr as_string_view (microfmt::string_view str) noexcept
 Constructs the view over a string_view.
 
constexpr microfmt::string_view get () const &noexcept
 Returns the underlying string view.
 
constexpr microfmt::string_view get () const &&=delete
 

Detailed Description

Non-owning string view supporting advanced format specifiers.

Constructor & Destructor Documentation

◆ as_string_view()

constexpr microfmt::as_string_view::as_string_view ( microfmt::string_view  str)
inlineexplicitconstexprnoexcept

Constructs the view over a string_view.

Parameters
strText to format.

Member Function Documentation

◆ get() [1/2]

constexpr microfmt::string_view microfmt::as_string_view::get ( ) const &&
constexprdelete

◆ get() [2/2]

constexpr microfmt::string_view microfmt::as_string_view::get ( ) const &
inlineconstexprnoexcept

Returns the underlying string view.

Returns
Referenced text.

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