microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
fmt.hpp File Reference

Lightweight {fmt}-compatible formatting bridge. More...

#include "../microfmt.hpp"
#include "ranges.hpp"
#include <cstddef>
#include <cstdio>
#include <iterator>
#include <string_view>
#include <type_traits>
Include dependency graph for fmt.hpp:

Go to the source code of this file.

Classes

struct  fmt::format_to_n_result< OutputIt >
 
struct  fmt::format_parse_context
 
class  fmt::sink_output_iterator
 
class  fmt::format_context
 

Namespaces

namespace  fmt
 
namespace  microfmt
 
namespace  microfmt::detail
 

Typedefs

using fmt::string_view = microfmt::string_view
 

Functions

template<typename... Args>
RELOCO_BEGIN_UNSAFE_CODE format_to_n_result< char * > fmt::format_to_n (char *out, size_t n, microfmt::string_view fmt_str, const Args &...args) noexcept
 
template<typename OutputIt , typename... Args, std::enable_if_t< std::is_pointer_v< OutputIt > &&std::is_same_v< std::remove_cv_t< std::remove_pointer_t< OutputIt > >, char >, int > = 0>
RELOCO_END_UNSAFE_CODE RELOCO_BEGIN_UNSAFE_CODE OutputIt fmt::format_to (OutputIt out, microfmt::string_view fmt_str, const Args &...args) noexcept
 
template<size_t Capacity, typename... Args>
RELOCO_END_UNSAFE_CODE auto fmt::format (microfmt::string_view fmt_str, const Args &...args) noexcept
 
template<typename... Args>
auto fmt::format (microfmt::string_view fmt_str, const Args &...args) noexcept
 
RELOCO_BEGIN_UNSAFE_BUFFER_USAGE RELOCO_BEGIN_UNSAFE_CODE void fmt::stdout_writer (void *, microfmt::string_view sv) noexcept
 
RELOCO_END_UNSAFE_CODE RELOCO_BEGIN_UNSAFE_CODE void fmt::stderr_writer (void *, microfmt::string_view sv) noexcept
 
template<typename... Args>
RELOCO_END_UNSAFE_CODE RELOCO_END_UNSAFE_BUFFER_USAGE void fmt::print (microfmt::string_view fmt_str, const Args &...args) noexcept
 
template<typename... Args>
RELOCO_BEGIN_UNSAFE_CODE void fmt::print (std::FILE *f, microfmt::string_view fmt_str, const Args &...args) noexcept
 
template<typename... Args>
RELOCO_END_UNSAFE_CODE void fmt::println (microfmt::string_view fmt_str, const Args &...args) noexcept
 
template<typename... Args>
RELOCO_BEGIN_UNSAFE_CODE void fmt::println (std::FILE *f, microfmt::string_view fmt_str, const Args &...args) noexcept
 
template<typename Range >
RELOCO_END_UNSAFE_CODE constexpr auto fmt::join (const Range &range, microfmt::string_view delimiter) noexcept
 
template<typename It , typename Sentinel >
constexpr auto fmt::join (It first, Sentinel last, microfmt::string_view delimiter) noexcept
 

Variables

constexpr size_t fmt::DEFAULT_FORMAT_BUFFER_SIZE = 128
 

Detailed Description

Lightweight {fmt}-compatible formatting bridge.