Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
basic_static_string::operator= (2 of 6 overloads)

Assign to the string.

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

Replace the contents with a copy of s

Exceptions

Type

Thrown On

std::length_error

if s.size() > max_size()


PrevUpHomeNext