FE 0.9.0
Header-only C++ frontend library
Loading...
Searching...
No Matches
format.h File Reference
#include <concepts>
#include <format>
#include <functional>
#include <iostream>
#include <ostream>
#include <print>
#include <ranges>
#include <sstream>
#include <string_view>
#include <utility>
#include "fe/loc.h"
#include "fe/utf8.h"
Include dependency graph for format.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fe::StreamFn< F >
 Wrap a callable f(std::ostream&) -> std::ostream& so it streams via operator<< and std::format. More...
struct  fe::basic_ostream_formatter< Char >
 Make types that support ostream operators available for std::format. More...
class  fe::Tab
 Keeps track of indentation level during output. More...
class  fe::Join< R >
 Join elements of range with sep. More...

Namespaces

namespace  fe

Concepts

concept  fe::Formattable

Macros

#define assertf(condition, ...)

Typedefs

using fe::ostream_formatter = basic_ostream_formatter<char>

Functions

template<class F>
 fe::StreamFn (F) -> StreamFn< F >
template<class R>
 fe::Join (R &&, std::string_view=", ") -> Join< R >

Macro Definition Documentation

◆ assertf

#define assertf ( condition,
... )
Value:
do { \
if (!(condition)) { \
std::println(std::cerr, "{}:{}: assertion `{}` failed", __FILE__, __LINE__, #condition); \
std::println(std::cerr, __VA_ARGS__); \
fe::breakpoint(); \
} \
} while (false)

Definition at line 194 of file format.h.