struct arg_mapper

Declaration

template <typename Context>
struct arg_mapper { /* full declaration omitted */ };

Declared at: third_party/fmt/include/fmt/core.h:1334

Templates

Context

Method Overview

  • public template <typename T, fmt::enable_if_t<(!formattable<T>::value), int> = 0>inline constexpr auto do_map(T &) -> fmt::detail::unformattable
  • public template <typename T, fmt::enable_if_t<(formattable<T>::value), int> = 0>inline constexpr auto do_map(T & val) -> T &
  • public template <typename T, fmt::enable_if_t<(is_string<T>::value && !std::is_pointer<T>::value && !std::is_same<char_type, char_t<T>>::value), int> = 0>inline constexpr auto map(const T &) -> fmt::detail::unformattable_char
  • public inline constexpr auto map(const fmt::detail::arg_mapper::char_type * val) -> const fmt::detail::arg_mapper::char_type *
  • public inline constexpr auto map(void * val) -> const void *
  • public inline constexpr auto map(const void * val) -> const void *
  • public inline constexpr auto map(std::nullptr_t val) -> const void *
  • public auto map(...) -> fmt::detail::unformattable
  • public template <typename T, fmt::enable_if_t<(std::is_same<T, char>::value || std::is_same<T, char_type>::value), int> = 0>inline constexpr auto map(T val) -> fmt::detail::arg_mapper::char_type
  • public template <typename T, enable_if_t<(std::is_same<T, wchar_t>::value || std::is_same<T, char8_t>::value || std::is_same<T, char16_t>::value || std::is_same<T, char32_t>::value) && !std::is_same<T, char_type>::value, int> = 0>inline constexpr auto map(T) -> fmt::detail::unformattable_char
  • public template <typename T, fmt::enable_if_t<(is_string<T>::value && !std::is_pointer<T>::value && std::is_same<char_type, char_t<T>>::value), int> = 0>inline constexpr auto map(const T & val) -> basic_string_view<fmt::detail::arg_mapper::char_type>
  • public inline constexpr auto map(fmt::detail::arg_mapper::char_type * val) -> const fmt::detail::arg_mapper::char_type *
  • public template <typename T, fmt::enable_if_t<(std::is_pointer<T>::value || std::is_member_pointer<T>::value || std::is_function<typename std::remove_pointer<T>::type>::value || (std::is_convertible<const T &, const void *>::value && !std::is_convertible<const T &, const char_type *>::value && !has_formatter<T, Context>::value)), int> = 0>constexpr auto map(const T &) -> fmt::detail::unformattable_pointer
  • public template <typename T, std::size_t N, fmt::enable_if_t<(!std::is_same<T, wchar_t>::value), int> = 0>inline constexpr auto map(const T (&)[N] values) -> const T (&)[N]
  • public template <typename T, typename U = format_as_t<T>, fmt::enable_if_t<(std::is_arithmetic<U>::value), int> = 0>inline constexpr auto map(const T & val) -> decltype(this->map(U()))
  • public template <typename T, typename U = remove_const_t<T>, fmt::enable_if_t<((std::is_class<U>::value || std::is_enum<U>::value || std::is_union<U>::value) && !is_string<U>::value && !is_char<U>::value && !is_named_arg<U>::value && !std::is_arithmetic<format_as_t<U>>::value), int> = 0>inline constexpr auto map(T & val) -> decltype(this->do_map(val))
  • public template <typename T, fmt::enable_if_t<(is_named_arg<T>::value), int> = 0>inline constexpr auto map(const T & named_arg) -> decltype(this->map(named_arg.value))
  • public inline constexpr auto map(signed char val) -> int
  • public inline constexpr auto map(long double val) -> long double
  • public inline constexpr auto map(double val) -> double
  • public inline constexpr auto map(float val) -> float
  • public inline constexpr auto map(bool val) -> bool
  • public inline constexpr auto map(fmt::detail::uint128_opt val) -> fmt::detail::uint128_opt
  • public inline constexpr auto map(fmt::detail::int128_opt val) -> fmt::detail::int128_opt
  • public inline constexpr auto map(unsigned long long val) -> unsigned long long
  • public inline constexpr auto map(long long val) -> long long
  • public inline constexpr auto map(unsigned long val) -> fmt::detail::ulong_type
  • public inline constexpr auto map(long val) -> fmt::detail::long_type
  • public inline constexpr auto map(unsigned int val) -> unsigned int
  • public inline constexpr auto map(int val) -> int
  • public inline constexpr auto map(unsigned short val) -> unsigned int
  • public inline constexpr auto map(short val) -> int
  • public inline constexpr auto map(unsigned char val) -> unsigned int

Methods

template <
    typename T,
    fmt::enable_if_t<(!formattable<T>::value),
                     int> = 0>
inline constexpr auto do_map(T&)
    -> fmt::detail::unformattable

Declared at: third_party/fmt/include/fmt/core.h:1452

Templates

T
fmt::enable_if_t<(!formattable::value), int>

Parameters

T&

template <
    typename T,
    fmt::enable_if_t<(formattable<T>::value),
                     int> = 0>
inline constexpr auto do_map(T& val) -> T&

Declared at: third_party/fmt/include/fmt/core.h:1448

Templates

T
fmt::enable_if_t<(formattable::value), int>

Parameters

T& val

template <typename T,
          fmt::enable_if_t<
              (is_string<T>::value &&
               !std::is_pointer<T>::value &&
               !std::is_same<char_type,
                             char_t<T>>::value),
              int> = 0>
inline constexpr auto map(const T&)
    -> fmt::detail::unformattable_char

Declared at: third_party/fmt/include/fmt/core.h:1403

Templates

T
fmt::enable_if_t<(is_string::value && !std::is_pointer::value && !std::is_same>::value), int>

Parameters

const T&

inline constexpr auto map(
    const fmt::detail::arg_mapper::char_type* val)
    -> const fmt::detail::arg_mapper::char_type*

Declared at: third_party/fmt/include/fmt/core.h:1390

Parameters

const fmt::detail::arg_mapper::char_type* val

inline constexpr auto map(void* val) -> const
    void*

Declared at: third_party/fmt/include/fmt/core.h:1407

Parameters

void* val

inline constexpr auto map(const void* val)
    -> const void*

Declared at: third_party/fmt/include/fmt/core.h:1408

Parameters

const void* val

inline constexpr auto map(std::nullptr_t val)
    -> const void*

Declared at: third_party/fmt/include/fmt/core.h:1411

Parameters

std::nullptr_t val

auto map(...) -> fmt::detail::unformattable

Declared at: third_party/fmt/include/fmt/core.h:1472

template <typename T,
          fmt::enable_if_t<
              (std::is_same<T, char>::value ||
               std::is_same<T, char_type>::value),
              int> = 0>
inline constexpr auto map(T val)
    -> fmt::detail::arg_mapper::char_type

Declared at: third_party/fmt/include/fmt/core.h:1366

Templates

T
fmt::enable_if_t<(std::is_same::value || std::is_same::value), int>

Parameters

T val

template <
    typename T,
    enable_if_t<
        (std::is_same<T, wchar_t>::value ||
         std::is_same<T, char8_t>::value ||
         std::is_same<T, char16_t>::value ||
         std::is_same<T, char32_t>::value) &&
            !std::is_same<T, char_type>::value,
        int> = 0>
inline constexpr auto map(T)
    -> fmt::detail::unformattable_char

Declared at: third_party/fmt/include/fmt/core.h:1377

Templates

T
enable_if_t<(std::is_same::value || std::is_same::value || std::is_same::value || std::is_same::value) && !std::is_same::value, int>

Parameters

T

template <typename T,
          fmt::enable_if_t<
              (is_string<T>::value &&
               !std::is_pointer<T>::value &&
               std::is_same<char_type,
                            char_t<T>>::value),
              int> = 0>
inline constexpr auto map(const T& val)
    -> basic_string_view<
        fmt::detail::arg_mapper::char_type>

Declared at: third_party/fmt/include/fmt/core.h:1396

Templates

T
fmt::enable_if_t<(is_string::value && !std::is_pointer::value && std::is_same>::value), int>

Parameters

const T& val

inline constexpr auto map(
    fmt::detail::arg_mapper::char_type* val)
    -> const fmt::detail::arg_mapper::char_type*

Declared at: third_party/fmt/include/fmt/core.h:1387

Parameters

fmt::detail::arg_mapper::char_type* val

template <
    typename T,
    fmt::enable_if_t<
        (std::is_pointer<T>::value ||
         std::is_member_pointer<T>::value ||
         std::is_function<
             typename std::remove_pointer<
                 T>::type>::value ||
         (std::is_convertible<
              const T&,
              const void*>::value &&
          !std::is_convertible<
              const T&,
              const char_type*>::value &&
          !has_formatter<T, Context>::value)),
        int> = 0>
constexpr auto map(const T&)
    -> fmt::detail::unformattable_pointer

Declared at: third_party/fmt/include/fmt/core.h:1425

Templates

T
fmt::enable_if_t<(std::is_pointer::value || std::is_member_pointer::value || std::is_function::type>::value || (std::is_convertible::value && !std::is_convertible::value && !has_formatter::value)), int>

Parameters

const T&

template <typename T,
          std::size_t N,
          fmt::enable_if_t<
              (!std::is_same<T, wchar_t>::value),
              int> = 0>
inline constexpr auto map(const T (&)[N] values)
    -> const T (&)[N]

Declared at: third_party/fmt/include/fmt/core.h:1431

Templates

T
std::size_t N
fmt::enable_if_t<(!std::is_same::value), int>

Parameters

const T (&)[N] values

template <typename T,
          typename U = format_as_t<T>,
          fmt::enable_if_t<
              (std::is_arithmetic<U>::value),
              int> = 0>
inline constexpr auto map(const T& val)
    -> decltype(this->map(U()))

Declared at: third_party/fmt/include/fmt/core.h:1438

Templates

T
U
fmt::enable_if_t<(std::is_arithmetic::value), int>

Parameters

const T& val

template <
    typename T,
    typename U = remove_const_t<T>,
    fmt::enable_if_t<((std::is_class<U>::value ||
                       std::is_enum<U>::value ||
                       std::is_union<U>::value) &&
                      !is_string<U>::value &&
                      !is_char<U>::value &&
                      !is_named_arg<U>::value &&
                      !std::is_arithmetic<
                          format_as_t<U>>::value),
                     int> = 0>
inline constexpr auto map(T& val)
    -> decltype(this->do_map(val))

Declared at: third_party/fmt/include/fmt/core.h:1462

Templates

T
U
fmt::enable_if_t<((std::is_class::value || std::is_enum::value || std::is_union::value) && !is_string::value && !is_char::value && !is_named_arg::value && !std::is_arithmetic>::value), int>

Parameters

T& val

template <
    typename T,
    fmt::enable_if_t<(is_named_arg<T>::value),
                     int> = 0>
inline constexpr auto map(const T& named_arg)
    -> decltype(this->map(named_arg.value))

Declared at: third_party/fmt/include/fmt/core.h:1467

Templates

T
fmt::enable_if_t<(is_named_arg::value), int>

Parameters

const T& named_arg

inline constexpr auto map(signed char val) -> int

Declared at: third_party/fmt/include/fmt/core.h:1337

Parameters

signed char val

inline constexpr auto map(long double val)
    -> long double

Declared at: third_party/fmt/include/fmt/core.h:1383

Parameters

long double val

inline constexpr auto map(double val) -> double

Declared at: third_party/fmt/include/fmt/core.h:1382

Parameters

double val

inline constexpr auto map(float val) -> float

Declared at: third_party/fmt/include/fmt/core.h:1381

Parameters

float val

inline constexpr auto map(bool val) -> bool

Declared at: third_party/fmt/include/fmt/core.h:1362

Parameters

bool val

inline constexpr auto map(
    fmt::detail::uint128_opt val)
    -> fmt::detail::uint128_opt

Declared at: third_party/fmt/include/fmt/core.h:1359

Parameters

fmt::detail::uint128_opt val

inline constexpr auto map(
    fmt::detail::int128_opt val)
    -> fmt::detail::int128_opt

Declared at: third_party/fmt/include/fmt/core.h:1356

Parameters

fmt::detail::int128_opt val

inline constexpr auto map(unsigned long long val)
    -> unsigned long long

Declared at: third_party/fmt/include/fmt/core.h:1352

Parameters

unsigned long long val

inline constexpr auto map(long long val)
    -> long long

Declared at: third_party/fmt/include/fmt/core.h:1351

Parameters

long long val

inline constexpr auto map(unsigned long val)
    -> fmt::detail::ulong_type

Declared at: third_party/fmt/include/fmt/core.h:1348

Parameters

unsigned long val

inline constexpr auto map(long val)
    -> fmt::detail::long_type

Declared at: third_party/fmt/include/fmt/core.h:1347

Parameters

long val

inline constexpr auto map(unsigned int val)
    -> unsigned int

Declared at: third_party/fmt/include/fmt/core.h:1346

Parameters

unsigned int val

inline constexpr auto map(int val) -> int

Declared at: third_party/fmt/include/fmt/core.h:1345

Parameters

int val

inline constexpr auto map(unsigned short val)
    -> unsigned int

Declared at: third_party/fmt/include/fmt/core.h:1342

Parameters

unsigned short val

inline constexpr auto map(short val) -> int

Declared at: third_party/fmt/include/fmt/core.h:1341

Parameters

short val

inline constexpr auto map(unsigned char val)
    -> unsigned int

Declared at: third_party/fmt/include/fmt/core.h:1338

Parameters

unsigned char val