Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
basic_static_string::assign (2 of 12 overloads)

Replace the contents.

Synopsis
template<
    std::size_t M>
BOOST_STATIC_STRING_CPP14_CONSTEXPR basic_static_string&
assign(
    const basic_static_string< M, CharT, Traits >& s);
Description

Replace the contents with a copy of another basic_static_string

Exceptions

Type

Thrown On

std::length_error

if s.size() > max_size()

Return Value

*this


PrevUpHomeNext