3#ifndef TETL_FORMAT_FMT_BUFFER_HPP
4#define TETL_FORMAT_FMT_BUFFER_HPP
10namespace etl::detail {
12template <
typename CharType>
14 using value_type = CharType;
16 template <
typename It>
17 fmt_buffer(It out) noexcept
19 , _pushBack{[](
void* ptr, CharType ch) { (*
static_cast<It*
>(ptr)) = ch; }}
23 auto push_back(CharType ch) ->
void { (_pushBack)(_it, ch); }
26 using push_back_func_t = void (*)(
void*, CharType);
29 push_back_func_t _pushBack;
constexpr auto addressof(T &arg) noexcept -> T *
Obtains the actual address of the object or function arg, even in presence of overloaded operator&.
Definition addressof.hpp:15