mrdocs::dom::String::String

Constructor.

Synopses

Declared in <mrdocs/Dom/String.hpp>

Constructor.

constexpr
String() noexcept = default;

Constructor.

String(String const& other) noexcept;

Constructor.

constexpr
String(String&& other) noexcept;

Constructor.

String(std::string_view sv);

Constructor.

template<StringLikeTy StringLike>
String(StringLike const& s);

Constructor.

template<std::size_t N>
constexpr
String(char const(& str)[N]);

Constructor.

String(
    char const* str,
    std::size_t len);

Parameters

Name Description

sv

The string to construct with. A copy of this string is made.

s

The string to construct with. A copy of this string is made.

str

A null‐terminated string. If the string is not null‐terminated, the result is undefined.

len

The length of the string.

Created with MrDocs