|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Growable character-container sink adapter. More...
#include "../microfmt.hpp"#include <cstddef>#include <new>#include <reloco/allocator.hpp>#include <reloco/error.hpp>#include <string>#include <string_view>#include <type_traits>#include <utility>#include <vector>
Go to the source code of this file.
Namespaces | |
| namespace | microfmt |
| namespace | microfmt::detail |
Functions | |
| template<typename Container , typename std::enable_if< is_growable_char_container< Container >, int >::type = 0> | |
| constexpr auto | microfmt::make_container_sink (Container &c RELOCO_LIFETIMEBOUND) noexcept |
| template<typename Container , typename... Args> | |
| RELOCO_BEGIN_UNSAFE_CODE std::enable_if< is_growable_char_container< Container >, void >::type | microfmt::format_to_container (Container &dest, microfmt::string_view fmt_str, const Args &...args) |
| template<typename Container = std::string, typename... Args> | |
| RELOCO_END_UNSAFE_CODE std::enable_if< is_growable_char_container< Container >, Container >::type | microfmt::format_as_container (microfmt::string_view fmt_str, const Args &...args) |
| template<typename Container , typename... Args> | |
| std::enable_if< is_growable_char_container< Container > &&std::is_constructible< Container, reloco::allocator_ref >::value, reloco::result< Container > >::type | microfmt::try_format_as_container (reloco::allocator_ref alloc, microfmt::string_view fmt_str, const Args &...args) |
| template<typename Container , typename... Args> | |
| std::enable_if< is_growable_char_container< Container >, reloco::result< void > >::type | microfmt::try_format_to_container (Container &dest, microfmt::string_view fmt_str, const Args &...args) |
Variables | |
| template<typename Container > | |
| constexpr bool | microfmt::is_growable_char_container = detail::is_growable_char_container_impl<Container>::value |
Growable character-container sink adapter.