Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
basic_static_string::assign (10 of 12 overloads)

Replace the contents.

Synopsis
template<
    typename T,
    [role red error.class-detail-template.1][role red error.class-detail-template.2] = detail::enable_if_viewable_t<T, CharT, Traits>>
BOOST_STATIC_STRING_CPP14_CONSTEXPR basic_static_string&
assign(
    const T& t);
Description

Replace the contents with a copy of the characters from string_view_type{t}

Exceptions

Type

Thrown On

std::length_error

if string_view_type{t}.size() > max_size()


PrevUpHomeNext