Constructors

Synopses

Declared in <absl/strings/str_cat.h>

Deleted copy constructor; AlphaNum is not copyable.

AlphaNum(AlphaNum const& other) = delete;

Deleted: use string literals ":" instead of character literals ':'.

AlphaNum(char c) = delete;

Constructs an AlphaNum from a double.

AlphaNum(double f);

Constructs an AlphaNum from a float.

AlphaNum(float f);

Constructs an AlphaNum from an int.

AlphaNum(int x);

Constructs an AlphaNum from a long.

AlphaNum(long x);

Constructs an AlphaNum from a long long.

AlphaNum(long long x);

Constructs an AlphaNum from an absl::string_view.

AlphaNum(std::string_view pc);

Constructs an AlphaNum from an unsigned int.

AlphaNum(unsigned int x);

Constructs an AlphaNum from an unsigned long.

AlphaNum(unsigned long x);

Constructs an AlphaNum from an unsigned long long.

AlphaNum(unsigned long long x);

Constructs an AlphaNum from a null‐terminated C string.

AlphaNum(char const* c_str);

Constructs an AlphaNum from an unscoped enum.

template<typename T>
requires std::is_enum<T>{} &&
                                        std::is_convertible<T, int>{} &&
                                        !HasAbslStringify<T>::value
AlphaNum(T e);

Constructs an AlphaNum from a scoped enum.

template<typename T>
requires std::is_enum<T>{} &&
                                             !std::is_convertible<T, int>{} &&
                                             !HasAbslStringify<T>::value
AlphaNum(T e);

Constructs an AlphaNum from a std::vector<bool> element reference.

template<typename T>
requires std::is_class_v<T> &&
          (std::is_same_v<T, std::vector<bool>::reference> ||
           std::is_same_v<T, std::vector<bool>::const_reference>)
AlphaNum(T e);

Deleted to prevent brace initialization.

template<typename T>
AlphaNum(std::initializer_list<T> list) = delete;

Constructs an AlphaNum from a fixed‐size conversion buffer.

template<size_t size>
AlphaNum(/* implementation-defined */ const& buf);

Constructs an AlphaNum from a std::basic_string.

template<typename Allocator>
AlphaNum(std::basic_string<char, std::char_traits<char>, Allocator> const& str);

Constructs an AlphaNum from a type with an AbslStringify() overload.

template<typename T>
requires HasAbslStringify<T>::value
AlphaNum(
    T const& v,
    /* implementation-defined */::StringifySink&& sink = {});

Parameters

Name

Description

c

The character (not accepted).

f

The value to convert.

x

The value to convert.

pc

The string view to convert.

c_str

The null‐terminated string; null produces no output.

e

The enum value to convert.

buf

The buffer holding the already‐converted characters.

str

The string to convert.

v

The value to stringify.

sink

The sink used to hold the stringified result.

Created with MrDocs