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

UUID formatting views and optional Boost.UUID support. More...

#include "../microfmt.hpp"
#include <cstddef>
#include <cstdint>
#include <reloco/type_id.hpp>
#include <string_view>
#include <type_traits>
#include "uuid.ipp"
Include dependency graph for uuid.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  microfmt::uuid_view
 
struct  microfmt::detail::is_uuid_container< T, typename >
 
struct  microfmt::detail::is_uuid_container< T, std::void_t< decltype(std::declval< const T & >().data()), decltype(std::declval< const T & >().size())> >
 
struct  microfmt::formatter< uuid_view >
 

Namespaces

namespace  microfmt
 
namespace  microfmt::detail
 

Functions

MICROFMT_API void microfmt::detail::format_uuid_bytes (const sink &out, span< const uint8_t > bytes, bool is_upper, bool is_braced) noexcept
 
constexpr uuid_view microfmt::uuid (span< const uint8_t > b, bool uppercase=false, bool braced=false) noexcept
 
constexpr uuid_view microfmt::uuid (const uint8_t(&arr)[16], bool uppercase=false, bool braced=false) noexcept
 
template<typename ArrayT , std::enable_if_t< detail::is_uuid_container< ArrayT >::value, int > = 0>
constexpr uuid_view microfmt::uuid (const ArrayT &arr, bool uppercase=false, bool braced=false) noexcept
 
template<typename ArrayT , std::enable_if_t<!std::is_lvalue_reference_v< ArrayT > &&detail::is_uuid_container< std::remove_reference_t< ArrayT > >::value, int > = 0>
constexpr uuid_view microfmt::uuid (ArrayT &&, bool=false, bool=false) noexcept=delete
 
 RELOCO_TYPE_ID_NAME (microfmt::uuid_view, "microfmt::uuid_view")
 

Detailed Description

UUID formatting views and optional Boost.UUID support.

Function Documentation

◆ RELOCO_TYPE_ID_NAME()

RELOCO_TYPE_ID_NAME ( microfmt::uuid_view  ,
"microfmt::uuid_view"   
)